5 #ifndef __QM_MAILBOX_H__
6 #define __QM_MAILBOX_H__
9 #include "qm_soc_regs.h"
10 #include "qm_mailbox_defs.h"
37 (QM_MBOX_CH_STS | QM_MBOX_CH_STS_CTRL_INT),
void(* qm_mbox_callback_t)(void *data)
Definition of the mailbox callback function prototype.
qm_mbox_payload_t
Mailbox message payload index values.
int qm_mbox_ch_read(const qm_mbox_ch_t mbox_ch, qm_mbox_msg_t *const msg)
Read specified mailbox channel.
qm_mbox_ch_t
Mailbox channel identifiers.
qm_mbox_destination_t dest
< Mailbox Destination
Mailbox channel operates in polling mode.
int qm_mbox_ch_write(const qm_mbox_ch_t mbox_ch, const qm_mbox_msg_t *const msg)
Write to a specified mailbox channel.
int qm_mbox_ch_get_status(const qm_mbox_ch_t mbox_ch, qm_mbox_ch_status_t *const status)
Retrieve the specified mailbox channel status.
uint32_t ctrl
Control word - bits 30 to 0 used as data/message id, bit 31 triggers channel interrupt when set by th...
Definition of the mailbox message.
No interrupt pending nor any data to consume.
Receiver hasn't serviced the interrupt and data has not been consumed.
Receiver has serviced the interrupt and data has not been consumed.
int qm_mbox_ch_set_config(const qm_mbox_ch_t mbox_ch, const qm_mbox_config_t *const config)
Set the mailbox channel configuration.
qm_mbox_destination_t
Definition of the mailbox direction of operation The direction of communication for each channel is c...
Mailbox channel operates in interrupt mode.
qm_mbox_mode_t mode
Message callback.
qm_mbox_mode_t
Definition of the mailbox mode of operation, interrupt mode or polling mode.
Mailbox Configuration Structure.
qm_mbox_callback_t callback
Callback function data to return via the callback function.
qm_mbox_ch_status_t
Mailbox channel status return codes.