AFBR-S50 API Reference Manual v1.5.6
AFBR-S50 Time-of-Flight Sensor SDK for Embedded Software
|
SCI Handshaking Module. More...
Functions | |
status_t | SCI_SendAcknowledge (sci_device_t deviceID, sci_cmd_t cmd) |
Sends an Acknowledge message. | |
status_t | SCI_SendNotAcknowledge (sci_device_t deviceID, sci_cmd_t cmd, status_t reason) |
Sends an Not-Acknowledge message. | |
SCI Handshaking Module.
Implements the handshaking command messages:
status_t SCI_SendAcknowledge | ( | sci_device_t | deviceID, |
sci_cmd_t | cmd | ||
) |
Sends an Acknowledge message.
deviceID | The ID (index) of the SPI device that should process the received frame. This is only used for extended commands! |
cmd | The command that is acknowledged. If extended command is passed, the frame will contain the deviceID. |
status_t SCI_SendNotAcknowledge | ( | sci_device_t | deviceID, |
sci_cmd_t | cmd, | ||
status_t | reason | ||
) |
Sends an Not-Acknowledge message.
deviceID | The ID (index) of the SPI device that should process the received frame. This is only used for extended commands! |
cmd | The command that is not-acknowledged. If extended command is passed, the frame will contain the deviceID. |
reason | The reason/status that caused the not-acknowledged. |