// Autogenerated C header file for CODAL Message Bus
#ifndef _JACDAC_SPEC_CODAL_MESSAGE_BUS_H
#define _JACDAC_SPEC_CODAL_MESSAGE_BUS_H 1

#define JD_SERVICE_CLASS_CODAL_MESSAGE_BUS  0x121ff81d

/**
 * Send a message on the CODAL bus. If `source` is `0`, it is treated as wildcard.
 */
#define JD_CODAL_MESSAGE_BUS_CMD_SEND 0x80
typedef struct jd_codal_message_bus_send {
    uint16_t source;
    uint16_t value;
} jd_codal_message_bus_send_t;


/**
 * Raised by the server is triggered by the server. The filtering logic of which event to send over Jacdac is up to the server implementation.
 */
#define JD_CODAL_MESSAGE_BUS_EV_MESSAGE 0x80
typedef struct jd_codal_message_bus_message {
    uint16_t source;
    uint16_t value;
} jd_codal_message_bus_message_t;


#endif
