|
Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
Internal Function definitions for communicating with a host using UART/USB. More...

Go to the source code of this file.
Classes | |
| struct | SerialBuffer |
| Structure of serial transfers. More... | |
Macros | |
| #define | SERIAL_MAC_RX_LEN (254) |
| Maximum serial transfer payload length. More... | |
Functions | |
| u8_t | SerialGetCommand (void) |
| Load next command into SerialRxBuffer if possible Note: Not applicable to UART, as read into buffer via interrupt. More... | |
| u8_t | Serial_ReadInterface (void) |
| Read in next Command from Serial hardware. More... | |
| void | MAC_Message_USB (u8_t CommandId, u8_t Count, const u8_t *pBuffer) |
| Send MCPS or MLME confirm or indication Upstream. More... | |
| void | MAC_Message_UART (u8_t CommandId, u8_t Count, const u8_t *pBuffer) |
| Send MCPS or MLME confirm or indication Upstream. More... | |
| void | EVBME_Message_USB (char *pBuffer, size_t Count) |
| Send EVBME_MESSAGE_Indication Upstream. More... | |
| void | EVBME_Message_UART (char *pBuffer, size_t Count) |
| Send EVBME_MESSAGE_Indication Upstream. More... | |
Variables | |
| struct SerialBuffer | SerialRxBuffer |
| volatile bool | SerialRxPending |
| int(* | cascoda_serial_dispatch )(u8_t *buf, size_t len, struct ca821x_dev *pDeviceRef) |
| Function pointer called when a serial message is received. More... | |
Internal Function definitions for communicating with a host using UART/USB.
| #define SERIAL_MAC_RX_LEN (254) |
Maximum serial transfer payload length.
| void EVBME_Message_UART | ( | char * | pBuffer, |
| size_t | Count | ||
| ) |
Send EVBME_MESSAGE_Indication Upstream.
| pBuffer | - Pointer to Character Buffer |
| Count | - Number of Characters |
| void EVBME_Message_USB | ( | char * | pBuffer, |
| size_t | Count | ||
| ) |
Send EVBME_MESSAGE_Indication Upstream.
| pBuffer | - Pointer to Character Buffer |
| Count | - Number of Characters |
Send MCPS or MLME confirm or indication Upstream.
| CommandId | - command id of confirm or indication |
| Count | - Number of Characters |
| pBuffer | - Pointer to Character Buffer |
Send MCPS or MLME confirm or indication Upstream.
| CommandId | - command id of confirm or indication |
| Count | - Number of Characters |
| pBuffer | - Pointer to Character Buffer |
| u8_t Serial_ReadInterface | ( | void | ) |
Read in next Command from Serial hardware.
| u8_t SerialGetCommand | ( | void | ) |
Load next command into SerialRxBuffer if possible Note: Not applicable to UART, as read into buffer via interrupt.
|
extern |
Function pointer called when a serial message is received.
Should be populated by applications wishing to use the serial interface
|
extern |
|
extern |