Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
cascoda_interface_core.h File Reference

Declarations for core platform abstraction functions. More...

#include "cascoda_types.h"
#include "mac_messages.h"
Include dependency graph for cascoda_interface_core.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void BSP_WaitUs (u32_t us)
 Wait for specified Time in Microseconds (max. More...
 
void BSP_Waiting (void)
 This function will be called repeatedly when the Baremetal drivers are blocking & waiting (eg. More...
 
u32_t BSP_ReadAbsoluteTime (void)
 Get the number of milliseconds since program start. More...
 
void BSP_WaitTicks (u32_t ticks)
 Wait for specified Time in Milliseconds. More...
 
void BSP_ResetRF (u8_t ms)
 Reset CAX RF Chip. More...
 
u8_t BSP_SenseRFIRQ (void)
 Sense whether SPI IRQ is high or low. More...
 
void BSP_DisableRFIRQ (void)
 Inhibit SPI IRQ, suppresses interrupt but still latches it. More...
 
void BSP_EnableRFIRQ (void)
 Allow SPI IRQ, re-enabling interrupt after BSP_DisableRFIRQ() More...
 
void BSP_SetRFSSBHigh (void)
 Put SPI Select (SSB) Pin high. More...
 
void BSP_SetRFSSBLow (void)
 Put SPI Select (SSB) Pin low. More...
 
void BSP_SPIInit (void)
 Initialise GPIO and SPI Pins for Comms with CA-821X. More...
 
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. More...
 
bool BSP_IsInsideInterrupt (void)
 Is the code running in an interrupt context? More...
 
void BSP_SetSPIMOSIOutput (void)
 Connect MOSI port to SPI MOSI and disable pull-up. More...
 
void BSP_SetSPIMOSITristate (void)
 Disconnect MOSI port from SPI MOSI and put to tristate with pull-up. More...
 
void BSP_MicroTimerStart (void)
 start microseconds timer More...
 
u32_t BSP_MicroTimerStop (void)
 stop microseconds timer More...
 
u32_t BSP_MicroTimerGet (void)
 get microseconds timer while running More...
 
bool BSP_IsCommsInterfaceEnabled (void)
 check if comms interface is connected More...
 

Detailed Description

Declarations for core platform abstraction functions.