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

Detailed Description

Declarations for core platform abstraction functions.