DOE Mailbox Device Interface Functions More...
Go to the source code of this file.
Data Structures | |
| struct | dif_mbx_range_config |
| Inbound and outbound range for DOE Mailbox. More... | |
| struct | dif_mbx_transaction |
| DOE object transferred on the inbound or outbound mailbox. More... | |
Macros | |
| #define | DOE_MAILBOX_MAX_OBJECT_SIZE 1024 |
| A DOE transaction is allowed to have at maximum 1024 double words (32-bit each). | |
Typedefs | |
| typedef struct dif_mbx_range_config | dif_mbx_range_config_t |
| Inbound and outbound range for DOE Mailbox. | |
| typedef struct dif_mbx_transaction | dif_mbx_transaction_t |
| DOE object transferred on the inbound or outbound mailbox. | |
Functions | |
| OT_WARN_UNUSED_RESULT dif_result_t | dif_mbx_range_set (const dif_mbx_t *mbx, dif_mbx_range_config_t config) |
| Configures the mailbox inbound and outbound ranges and validates them. | |
| OT_WARN_UNUSED_RESULT dif_result_t | dif_mbx_is_busy (const dif_mbx_t *mbx, bool *is_busy) |
| Returns whether the mailbox is busy or not. | |
| OT_WARN_UNUSED_RESULT dif_result_t | dif_mbx_range_get (const dif_mbx_t *mbx, dif_mbx_range_config_t *config) |
| Reads the mailbox range configuration. | |
| OT_WARN_UNUSED_RESULT dif_result_t | dif_mbx_ipi_configuration_get (const dif_mbx_t *mbx, uint32_t *doe_intr_addr, uint32_t *doe_intr_data) |
| Reads the DOE interrupt configuration for inter-processor interrupts (IPI). | |
| OT_WARN_UNUSED_RESULT dif_result_t | dif_mbx_process_request (const dif_mbx_t *mbx, dif_mbx_transaction_t *request) |
| Reads the DoE Mailbox request from internal SRAM. | |
| OT_WARN_UNUSED_RESULT dif_result_t | dif_mbx_generate_response (const dif_mbx_t *mbx, const dif_mbx_transaction_t response) |
| Host writes the DoE Mailbox response to the internal SRAM. | |
DOE Mailbox Device Interface Functions
Definition in file dif_mbx.h.
| struct dif_mbx_range_config |
| struct dif_mbx_transaction |
| #define DOE_MAILBOX_MAX_OBJECT_SIZE 1024 |
| OT_WARN_UNUSED_RESULT dif_result_t dif_mbx_generate_response | ( | const dif_mbx_t * | mbx, |
| const dif_mbx_transaction_t | response ) |
| OT_WARN_UNUSED_RESULT dif_result_t dif_mbx_ipi_configuration_get | ( | const dif_mbx_t * | mbx, |
| uint32_t * | doe_intr_addr, | ||
| uint32_t * | doe_intr_data ) |
| OT_WARN_UNUSED_RESULT dif_result_t dif_mbx_is_busy | ( | const dif_mbx_t * | mbx, |
| bool * | is_busy ) |
| OT_WARN_UNUSED_RESULT dif_result_t dif_mbx_process_request | ( | const dif_mbx_t * | mbx, |
| dif_mbx_transaction_t * | request ) |
Reads the DoE Mailbox request from internal SRAM.
The request->nr_words field specifies the maximum number of words that can be stored in the internal request array. After reading, this function updates request->nr_words to indicate the actual number of words read.
| mbx | A handle to the DoE Mailbox. | |
| [out] | request | A pointer to the DoE object where the request data from internal SRAM will be stored. |
| OT_WARN_UNUSED_RESULT dif_result_t dif_mbx_range_get | ( | const dif_mbx_t * | mbx, |
| dif_mbx_range_config_t * | config ) |
| OT_WARN_UNUSED_RESULT dif_result_t dif_mbx_range_set | ( | const dif_mbx_t * | mbx, |
| dif_mbx_range_config_t | config ) |