40 #ifndef CASCODA_INTERFACE_CORE_H
41 #define CASCODA_INTERFACE_CORE_H
Type definitions used by Cascoda baremetal drivers.
unsigned long u32_t
Definition: cascoda_types.h:50
unsigned char u8_t
Definition: cascoda_types.h:46
void BSP_SPIExchange(u8_t *RxBuf, const u8_t *TxBuf, u8_t RxLen, u8_t TxLen)
Exchange bytes over SPI, receiving into RxBuf and transferring from TxBuf.
void BSP_SetSPIMOSITristate(void)
Disconnect MOSI port from SPI MOSI and put to tristate with pull-up.
Definition: cascoda_bsp_chili.c:583
void BSP_SetSPIMOSIOutput(void)
Connect MOSI port to SPI MOSI and disable pull-up.
Definition: cascoda_bsp_chili.c:573
u32_t BSP_MicroTimerGet(void)
get microseconds timer while running
Definition: cascoda_time.c:64
u32_t BSP_MicroTimerStop(void)
stop microseconds timer
Definition: cascoda_time.c:56
bool BSP_IsCommsInterfaceEnabled(void)
check if comms interface is connected
Definition: cascoda_bsp_chili.c:557
void BSP_SPIInit(void)
Initialise GPIO and SPI Pins for Comms with CA-821X.
Definition: cascoda_bsp_chili.c:358
void BSP_Waiting(void)
This function will be called repeatedly when the Baremetal drivers are blocking & waiting (eg.
Definition: cascoda_bsp_chili.c:644
u8_t BSP_SenseRFIRQ(void)
Sense whether SPI IRQ is high or low.
Definition: cascoda_bsp_chili.c:118
bool BSP_IsInsideInterrupt(void)
Is the code running in an interrupt context?
Definition: cascoda_bsp_chili.c:802
void BSP_WaitTicks(u32_t ticks)
Wait for specified Time in Milliseconds.
Definition: cascoda_time.c:38
void BSP_SetRFSSBLow(void)
Put SPI Select (SSB) Pin low.
Definition: cascoda_bsp_chili.c:154
u32_t BSP_ReadAbsoluteTime(void)
Get the number of milliseconds since program start.
Definition: cascoda_time.c:17
void BSP_WaitUs(u32_t us)
Wait for specified Time in Microseconds (max.
Definition: cascoda_bsp_chili.c:78
void BSP_EnableRFIRQ(void)
Allow SPI IRQ, re-enabling interrupt after BSP_DisableRFIRQ()
Definition: cascoda_bsp_chili.c:136
void BSP_DisableRFIRQ(void)
Inhibit SPI IRQ, suppresses interrupt but still latches it.
Definition: cascoda_bsp_chili.c:126
void BSP_ResetRF(u8_t ms)
Reset CAX RF Chip.
Definition: cascoda_bsp_chili.c:99
void BSP_MicroTimerStart(void)
start microseconds timer
Definition: cascoda_time.c:49
void BSP_SetRFSSBHigh(void)
Put SPI Select (SSB) Pin high.
Definition: cascoda_bsp_chili.c:146
Definitions relating to MLME and MCPS API messages.