This is a Maibox Implementiion like the linux mailbox subystem
◆ mailbox_deinit()
int32_t mailbox_deinit |
( |
struct mailbox * |
mailbox | ) |
|
Deinit Driver Instants
- Parameters
-
- Returns
- 0 on ok -1 on failure
◆ mailbox_init()
struct mailbox* mailbox_init |
( |
uint32_t |
index | ) |
|
Init Function
- Parameters
-
- Returns
- Example Instants or NULL
◆ mailbox_recv()
int32_t mailbox_recv |
( |
struct mailbox * |
mailbox, |
|
|
uint32_t * |
data, |
|
|
TickType_t |
waittime |
|
) |
| |
recv a Messsage from Mailbox
- Parameters
-
mailbox | Instant |
data | pointer to Data |
waittime | waittime |
- Returns
- 0 on ok -1 on error
◆ mailbox_recvISR()
int32_t mailbox_recvISR |
( |
struct mailbox * |
mailbox, |
|
|
uint32_t * |
data |
|
) |
| |
recv a Messsage from Mailbox
- Parameters
-
mailbox | Instant |
data | pointer to Data |
- Returns
- 0 on ok -1 on error
◆ mailbox_send()
int32_t mailbox_send |
( |
struct mailbox * |
mailbox, |
|
|
uint32_t |
data, |
|
|
TickType_t |
waittime |
|
) |
| |
Send a Messsage to Mailbox
- Parameters
-
mailbox | Instant |
data | Data |
waittime | waittime |
- Returns
- 0 on ok -1 on error
◆ mailbox_sendISR()
int32_t mailbox_sendISR |
( |
struct mailbox * |
mailbox, |
|
|
uint32_t |
data |
|
) |
| |
Send a Messsage to Mailbox
- Parameters
-
- Returns
- 0 on ok -1 on error