33 #ifndef CASCODA_SERIAL_H
34 #define CASCODA_SERIAL_H
44 #if !defined(SERIAL_MAC_RX_LEN)
45 #define SERIAL_MAC_RX_LEN (254)
132 #if defined(USE_UART)
136 void SerialSendRxRdy(
void);
141 void SerialSendRxFail(
void);
146 void SerialReadComplete(
void);
151 void SerialResetTxStalled(
void);
The main ca821x-api include file.
void MAC_Message_UART(u8_t CommandId, u8_t Count, const u8_t *pBuffer)
Send MCPS or MLME confirm or indication Upstream.
void EVBME_Message_UART(char *pBuffer, size_t Count)
Send EVBME_MESSAGE_Indication Upstream.
struct SerialBuffer SerialRxBuffer
#define SERIAL_MAC_RX_LEN
Maximum serial transfer payload length.
Definition: cascoda_serial.h:45
void MAC_Message_USB(u8_t CommandId, u8_t Count, const u8_t *pBuffer)
Send MCPS or MLME confirm or indication Upstream.
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.
Definition: cascoda_evbme.c:77
u8_t SerialGetCommand(void)
Load next command into SerialRxBuffer if possible Note: Not applicable to UART, as read into buffer v...
u8_t Serial_ReadInterface(void)
Read in next Command from Serial hardware.
void EVBME_Message_USB(char *pBuffer, size_t Count)
Send EVBME_MESSAGE_Indication Upstream.
Type definitions used by Cascoda baremetal drivers.
unsigned char u8_t
Definition: cascoda_types.h:46
Structure of serial transfers.
Definition: cascoda_serial.h:50
u8_t CmdLen
Definition: cascoda_serial.h:53
u8_t Data[SERIAL_MAC_RX_LEN]
Data payload.
Definition: cascoda_serial.h:55
u8_t CmdId
Header according to API specification.
Definition: cascoda_serial.h:52
CA-821x Device reference struct.
Definition: ca821x_api.h:123