|
void | BSP_GetFlashInfo (struct ca_flash_info *aFlashInfoOut) |
| Get the flashinfo struct for the current platform. More...
|
|
struct ModuleSpecialPins | BSP_GetModuleSpecialPins (void) |
| Get the struct of special pins for the platform. More...
|
|
void | BSP_WaitUs (u32_t us) |
| Wait for specified Time in Microseconds (max. 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_EnableSerialIRQ (void) |
| Enable the serial (usb/uart) irq. More...
|
|
void | BSP_DisableSerialIRQ (void) |
| Disable the serial (usb/uart) irq. More...
|
|
void | BSP_SPIInit (void) |
| Initialise GPIO and SPI Pins for Comms with CA-821X. More...
|
|
u8_t | BSP_SPIPushByte (u8_t OutByte) |
|
u8_t | BSP_SPIPopByte (u8_t *InByte) |
|
void | BSP_SPIExchange (uint8_t *RxBuf, const uint8_t *TxBuf, uint8_t RxLen, uint8_t TxLen) |
|
void | BSP_PowerDown (u32_t sleeptime_ms, u8_t use_timer0, dpd_flag dpd) |
| Set up wake on timer/IRQ, Power down MCU and return on wakeup. More...
|
|
void | BSP_SetPowerDown (void) |
| Set flag that system has started power-down sequence. 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...
|
|
wakeup_reason | BSP_GetWakeupReason (void) |
| Reason MCU has woken up after reset. More...
|
|
void | BSP_Initialise (struct ca821x_dev *pDeviceRef) |
| Initialise the system for a given ca821x_dev. More...
|
|
void | BSP_UseExternalClock (u8_t useExternalClock) |
| Enable or disable the usage of the external clock from the CA821x. More...
|
|
ca_error | BSP_ModuleRegisterGPIOInput (struct gpio_input_args *args) |
| Registers GPIO Input Functionality for Module Pin. More...
|
|
ca_error | BSP_ModuleRegisterGPIOOutput (u8_t mpin, module_pin_type isled) |
| Registers GPIO Output Functionality for Module Pin. More...
|
|
ca_error | BSP_ModuleRegisterGPIOOutputOD (u8_t mpin, module_pin_type isled) |
| Registers GPIO Open Drain Output Functionality for Module Pin. More...
|
|
ca_error | BSP_ModuleRegisterGPIOSharedInputOutputOD (struct gpio_input_args *args, module_pin_type isled) |
| Registers GPIO Input AND Open Drain Output Functionality for Module Pin. More...
|
|
ca_error | BSP_ModuleDeregisterGPIOPin (u8_t mpin) |
| Unregisters GPIO Functionality for Module Pin to Default Settings. More...
|
|
u8_t | BSP_ModuleIsGPIOPinRegistered (u8_t mpin) |
| Checks if a Module Pin is already registered / used. More...
|
|
ca_error | BSP_ModuleSetGPIOPin (u8_t mpin, u8_t val) |
| Sets Module Pin GPIO Output Value. More...
|
|
ca_error | BSP_ModuleSenseGPIOPin (u8_t mpin, u8_t *val) |
| Senses GPIO Input Value of Module Pin. More...
|
|
ca_error | BSP_ModuleSenseGPIOPinOutput (u8_t mpin, u8_t *val) |
| Senses GPIO Output Value of Module Pin. More...
|
|
ca_error | BSP_ModuleSetGPIOOutputPermanent (u8_t mpin) |
| Sets Module Pin GPIO Output as permanently driven (don't tristate in Power-Down) More...
|
|
ca_error | BSP_ModuleReadVoltsPin (u8_t mpin, u32_t *val) |
| Reads ADC Conversion Value on Module Pin. More...
|
|
void | BSP_SystemReset (sysreset_mode resetMode) |
| **OPTIONAL Function Declarations for cascoda_bsp_*.c
More...
|
|
ca_error | BSP_SetBootMode (sysreset_mode bootMode) |
| Set the default boot mode for the device. More...
|
|
bool | BSP_IsInsideInterrupt (void) |
| Is the code running in an interrupt context? More...
|
|
void | BSP_Waiting (void) |
| This function will be called repeatedly when the Baremetal drivers are blocking & waiting (eg. More...
|
|
u64_t | BSP_GetUniqueId (void) |
| Get a 64-bit ID that is unique to this device. More...
|
|
const char * | BSP_GetPlatString (void) |
| Get a string that describes this device. More...
|
|
u8_t | BSP_GetChargeStat (void) |
| Get Microchip MCP73831 Charge Status. More...
|
|
u8_t | BSP_GetVBUSConnected (void) |
| Get USB VBUS status (connected/not connected) More...
|
|
i32_t | BSP_GetTemperature (void) |
| Measure and Read Temperature Value. More...
|
|
u32_t | BSP_ADCGetVolts (void) |
| Measure and Read Battery Volts Value from ADC. More...
|
|
void | BSP_WatchdogEnable (u32_t timeout_ms) |
| Watchdog Enable. More...
|
|
void | BSP_WatchdogReset (void) |
| Watchdog Reset and Restart. More...
|
|
u8_t | BSP_IsWatchdogTriggered (void) |
| Checks if the watchdog has been triggered, clears the warning if so. More...
|
|
void | BSP_WatchdogDisable (void) |
| Watchdog Disable. More...
|
|
u8_t | BSP_GPIOSenseSwitch (void) |
|
void | BSP_EnableUSB (void) |
| Enable the USB if connected. More...
|
|
void | BSP_DisableUSB (void) |
| Disable the USB. More...
|
|
u8_t | BSP_IsUSBPresent (void) |
| Is the USB connected? More...
|
|
fsys_mhz | BSP_GetSystemFrequency (void) |
| Returns the system frequency. More...
|
|
void | BSP_SystemConfig (fsys_mhz fsys, u8_t enable_comms) |
| re-configures system clock frequency and comms interface More...
|
|
ca_error | BSP_FlashWriteInitial (u32_t startaddr, void *data, u32_t datasize) |
| Writes Dataflash Memory, relies on Memory erased. More...
|
|
ca_error | BSP_FlashErase (u32_t startaddr) |
| Erases a Dataflash Memory page (All words in page set to 0xFFFFFFFF) More...
|
|
ca_error | BSP_FlashRead (u32_t startaddr, u32_t *data, u32_t datasize) |
| Reads Dataflash Memory. More...
|
|
ca_error | BSP_FlashCheck (u32_t startaddr, u32_t checklen, u32_t crc32) |
| Check that a given range of flash matches the provided CRC32 checksum. More...
|
|
void | SENSORIF_I2C_Config (u32_t portnum) |
| Set I2C Configuration. More...
|
|
void | SENSORIF_I2C_Init (void) |
| Initialises and enables I2C interface. More...
|
|
void | SENSORIF_I2C_Deinit (void) |
| Disables I2C interface. More...
|
|
enum sensorif_i2c_status | SENSORIF_I2C_Write (u8_t slaveaddr, u8_t *data, u32_t *len) |
| Writes bytes to I2C slave. More...
|
|
enum sensorif_i2c_status | SENSORIF_I2C_Read (u8_t slaveaddr, u8_t *pdata, u32_t *plen) |
| Reads bytes from I2C slave. More...
|
|
ca_error | SENSORIF_SPI_Write (u8_t out_data) |
| Writes bytes to SPI slave. More...
|
|
void | SENSORIF_SPI_Init (bool is_eink_display_present) |
| Initialises and enables SPI interface. More...
|
|
ca_error | utilsFlashDeinit (struct ca821x_dev *aInstance) |
| Deinitialize the flash driver. More...
|
|