Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
#include "cascoda-bm/cascoda_interface.h"
Go to the source code of this file.
Functions | |
void | CHILI_SetUseExternalClock (u8_t use_ext_clock) |
Set Use_external_clock flag. More... | |
u8_t | CHILI_GetUseExternalClock (void) |
Get Use_external_clock flag. More... | |
void | CHILI_SetEnableCommsInterface (u8_t enable_coms_interface) |
Set enable_comms_interface flag, used by CHILI_SystemReinit. More... | |
u8_t | CHILI_GetEnableCommsInterface (void) |
Get enable_comms_interface flag, used by CHILI_SystemReinit. More... | |
void | CHILI_SetSystemFrequency (fsys_mhz system_frequency) |
Set current system frequency. More... | |
fsys_mhz | CHILI_GetSystemFrequency (void) |
Get current system frequency. More... | |
void | CHILI_GetUID (uint32_t *uid_out) |
Get the 96-bit hardware unique ID. More... | |
void | CHILI_EnableSpiModuleClock () |
Enable SPI Clock. More... | |
void | CHILI_WaitForSystemStable () |
Wait until system is stable after potential usb plug-in. More... | |
void | CHILI_InitADC (u32_t reference) |
Initialise ADC peripheral. More... | |
void | CHILI_DeinitADC () |
Deinitialise ADC peripheral. More... | |
void | CHILI_GPIOInitClock () |
Initialise GPIO peripheral clock. More... | |
void | CHILI_ReInitSetTimerPriority () |
Initialise Timer IRQ priorities. More... | |
void | CHILI_PowerDownSelectClock (u8_t use_timer0) |
Configure clock for power down. More... | |
u32_t | CHILI_PowerDownSecure (u32_t sleeptime_ms, u8_t use_timer0, dpd_flag dpd) |
Process all of the secure-only power down routines. More... | |
void | CHILI_EnableTemperatureSensor () |
Enable internal temperature sensor. More... | |
void | CHILI_DisableTemperatureSensor () |
Disable internal temperature sensor. More... | |
u8_t | CHILI_GetAsleep () |
Is chili currently asleep? More... | |
void | CHILI_SetAsleep (u8_t new_asleep) |
Set asleep state. More... | |
u8_t | CHILI_GetWakeup () |
Should the Chili wake up? More... | |
void | CHILI_SetWakeup (u8_t new_wakeup) |
Set wake up state. More... | |
u8_t | CHILI_GetGPIOInt () |
Has gpio interrupt occured during power-down sequence? More... | |
void | CHILI_SetGPIOInt (u8_t new_gpioint) |
Set gpio interrrupt occured during power-down sequence flag. More... | |
u8_t | CHILI_GetPowerDown () |
Get power-down flag (device is powering down) ? More... | |
void | CHILI_SetPowerDown (u8_t new_powerdown) |
Set power-down flag. More... | |
void | CHILI_SetLDROMBoot (void) |
Configure the chili to boot from LDROM next time. More... | |
void | CHILI_SetAPROMBoot (void) |
Configure the chili to boot from APROM next time. More... | |
void | CHILI_EnableTRNGClk (void) |
Enable the TRNG Module Clock. More... | |
void | CHILI_DisableTRNGClk (void) |
Disable the TRNG Module Clock. More... | |
void | CHILI_SPIDMAIRQHandler (void) |
Interrupt Handler for SPI DMA. More... | |
void | CHILI_RegisterSPIComplete (void(*callback)(void)) |
Register the SPIComplete callback on trustzone (Compiles to nothing on non-tz) More... | |
void CHILI_DeinitADC | ( | ) |
Deinitialise ADC peripheral.
void CHILI_DisableTemperatureSensor | ( | ) |
Disable internal temperature sensor.
void CHILI_DisableTRNGClk | ( | void | ) |
Disable the TRNG Module Clock.
void CHILI_EnableSpiModuleClock | ( | ) |
Enable SPI Clock.
void CHILI_EnableTemperatureSensor | ( | ) |
Enable internal temperature sensor.
void CHILI_EnableTRNGClk | ( | void | ) |
Enable the TRNG Module Clock.
u8_t CHILI_GetAsleep | ( | ) |
Is chili currently asleep?
u8_t CHILI_GetEnableCommsInterface | ( | void | ) |
Get enable_comms_interface flag, used by CHILI_SystemReinit.
u8_t CHILI_GetGPIOInt | ( | ) |
Has gpio interrupt occured during power-down sequence?
u8_t CHILI_GetPowerDown | ( | ) |
Get power-down flag (device is powering down) ?
fsys_mhz CHILI_GetSystemFrequency | ( | void | ) |
Get current system frequency.
void CHILI_GetUID | ( | uint32_t * | uid_out | ) |
Get the 96-bit hardware unique ID.
uid_out | Out pointer pointing to at least 3 words of memory |
u8_t CHILI_GetUseExternalClock | ( | void | ) |
Get Use_external_clock flag.
u8_t CHILI_GetWakeup | ( | ) |
Should the Chili wake up?
void CHILI_GPIOInitClock | ( | ) |
Initialise GPIO peripheral clock.
void CHILI_InitADC | ( | u32_t | reference | ) |
Initialise ADC peripheral.
Process all of the secure-only power down routines.
void CHILI_PowerDownSelectClock | ( | u8_t | use_timer0 | ) |
Configure clock for power down.
void CHILI_RegisterSPIComplete | ( | void(*)(void) | callback | ) |
Register the SPIComplete callback on trustzone (Compiles to nothing on non-tz)
void CHILI_ReInitSetTimerPriority | ( | ) |
Initialise Timer IRQ priorities.
void CHILI_SetAPROMBoot | ( | void | ) |
Configure the chili to boot from APROM next time.
void CHILI_SetAsleep | ( | u8_t | new_asleep | ) |
Set asleep state.
void CHILI_SetEnableCommsInterface | ( | u8_t | enable_coms_interface | ) |
Set enable_comms_interface flag, used by CHILI_SystemReinit.
void CHILI_SetGPIOInt | ( | u8_t | new_gpioint | ) |
Set gpio interrrupt occured during power-down sequence flag.
void CHILI_SetLDROMBoot | ( | void | ) |
Configure the chili to boot from LDROM next time.
void CHILI_SetPowerDown | ( | u8_t | new_powerdown | ) |
Set power-down flag.
void CHILI_SetSystemFrequency | ( | fsys_mhz | system_frequency | ) |
Set current system frequency.
system_frequency | New system frequency |
void CHILI_SetUseExternalClock | ( | u8_t | use_ext_clock | ) |
Set Use_external_clock flag.
void CHILI_SetWakeup | ( | u8_t | new_wakeup | ) |
Set wake up state.
void CHILI_SPIDMAIRQHandler | ( | void | ) |
Interrupt Handler for SPI DMA.
void CHILI_WaitForSystemStable | ( | ) |
Wait until system is stable after potential usb plug-in.