mailbox.h File Reference
Mailbox functionality.
More...
Go to the source code of this file.
Detailed Description
Mailbox functionality.
Definition in file mailbox.h.
Function Documentation
| uint8_t* ec_slave_mbox_prepare_send |
( |
const ec_slave_t * |
slave, |
|
|
ec_datagram_t * |
datagram, |
|
|
uint8_t |
type, |
|
|
size_t |
size | |
|
) |
| | |
Prepares a mailbox-send datagram.
- Returns:
- Pointer to mailbox datagram data, or ERR_PTR() code.
- Parameters:
-
| slave |
slave |
| datagram |
datagram |
| type |
mailbox protocol |
| size |
size of the data |
Definition at line 51 of file mailbox.c.
Prepares a datagram for checking the mailbox state.
- Todo:
- Determine sync manager used for receive mailbox
- Returns:
- 0 in case of success, else < 0
- Parameters:
-
| slave |
slave |
| datagram |
datagram |
Definition at line 96 of file mailbox.c.
Processes a mailbox state checking datagram.
- Returns:
- 0 in case of success, else < 0
- Parameters:
-
Definition at line 115 of file mailbox.c.
Prepares a datagram to fetch mailbox data.
- Returns:
- 0 in case of success, else < 0
- Parameters:
-
| slave |
slave |
| datagram |
datagram |
Definition at line 127 of file mailbox.c.
| uint8_t* ec_slave_mbox_fetch |
( |
const ec_slave_t * |
slave, |
|
|
const ec_datagram_t * |
datagram, |
|
|
uint8_t * |
type, |
|
|
size_t * |
size | |
|
) |
| | |
Processes received mailbox data.
- Returns:
- Pointer to the received data, or ERR_PTR() code.
- Parameters:
-
| slave |
slave |
| datagram |
datagram |
| type |
expected mailbox protocol |
| size |
size of the received data |
Definition at line 165 of file mailbox.c.