Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
cascoda_secure.h File Reference
Include dependency graph for cascoda_secure.h:
This graph shows which files directly or indirectly include this file:

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...
 

Function Documentation

◆ CHILI_DeinitADC()

void CHILI_DeinitADC ( )

Deinitialise ADC peripheral.

◆ CHILI_DisableTemperatureSensor()

void CHILI_DisableTemperatureSensor ( )

Disable internal temperature sensor.

◆ CHILI_DisableTRNGClk()

void CHILI_DisableTRNGClk ( void  )

Disable the TRNG Module Clock.

◆ CHILI_EnableSpiModuleClock()

void CHILI_EnableSpiModuleClock ( )

Enable SPI Clock.

◆ CHILI_EnableTemperatureSensor()

void CHILI_EnableTemperatureSensor ( )

Enable internal temperature sensor.

◆ CHILI_EnableTRNGClk()

void CHILI_EnableTRNGClk ( void  )

Enable the TRNG Module Clock.

◆ CHILI_GetAsleep()

u8_t CHILI_GetAsleep ( )

Is chili currently asleep?

◆ CHILI_GetEnableCommsInterface()

u8_t CHILI_GetEnableCommsInterface ( void  )

Get enable_comms_interface flag, used by CHILI_SystemReinit.

◆ CHILI_GetGPIOInt()

u8_t CHILI_GetGPIOInt ( )

Has gpio interrupt occured during power-down sequence?

◆ CHILI_GetPowerDown()

u8_t CHILI_GetPowerDown ( )

Get power-down flag (device is powering down) ?

◆ CHILI_GetSystemFrequency()

fsys_mhz CHILI_GetSystemFrequency ( void  )

Get current system frequency.

Returns
Current system frequency

◆ CHILI_GetUID()

void CHILI_GetUID ( uint32_t *  uid_out)

Get the 96-bit hardware unique ID.

Parameters
uid_outOut pointer pointing to at least 3 words of memory

◆ CHILI_GetUseExternalClock()

u8_t CHILI_GetUseExternalClock ( void  )

Get Use_external_clock flag.

◆ CHILI_GetWakeup()

u8_t CHILI_GetWakeup ( )

Should the Chili wake up?

◆ CHILI_GPIOInitClock()

void CHILI_GPIOInitClock ( )

Initialise GPIO peripheral clock.

◆ CHILI_InitADC()

void CHILI_InitADC ( u32_t  reference)

Initialise ADC peripheral.

◆ CHILI_PowerDownSecure()

u32_t CHILI_PowerDownSecure ( u32_t  sleeptime_ms,
u8_t  use_timer0,
dpd_flag  dpd 
)

Process all of the secure-only power down routines.

◆ CHILI_PowerDownSelectClock()

void CHILI_PowerDownSelectClock ( u8_t  use_timer0)

Configure clock for power down.

◆ CHILI_RegisterSPIComplete()

void CHILI_RegisterSPIComplete ( void(*)(void)  callback)

Register the SPIComplete callback on trustzone (Compiles to nothing on non-tz)

◆ CHILI_ReInitSetTimerPriority()

void CHILI_ReInitSetTimerPriority ( )

Initialise Timer IRQ priorities.

◆ CHILI_SetAPROMBoot()

void CHILI_SetAPROMBoot ( void  )

Configure the chili to boot from APROM next time.

◆ CHILI_SetAsleep()

void CHILI_SetAsleep ( u8_t  new_asleep)

Set asleep state.

◆ CHILI_SetEnableCommsInterface()

void CHILI_SetEnableCommsInterface ( u8_t  enable_coms_interface)

Set enable_comms_interface flag, used by CHILI_SystemReinit.

◆ CHILI_SetGPIOInt()

void CHILI_SetGPIOInt ( u8_t  new_gpioint)

Set gpio interrrupt occured during power-down sequence flag.

◆ CHILI_SetLDROMBoot()

void CHILI_SetLDROMBoot ( void  )

Configure the chili to boot from LDROM next time.

◆ CHILI_SetPowerDown()

void CHILI_SetPowerDown ( u8_t  new_powerdown)

Set power-down flag.

◆ CHILI_SetSystemFrequency()

void CHILI_SetSystemFrequency ( fsys_mhz  system_frequency)

Set current system frequency.

Parameters
system_frequencyNew system frequency

◆ CHILI_SetUseExternalClock()

void CHILI_SetUseExternalClock ( u8_t  use_ext_clock)

Set Use_external_clock flag.

◆ CHILI_SetWakeup()

void CHILI_SetWakeup ( u8_t  new_wakeup)

Set wake up state.

◆ CHILI_SPIDMAIRQHandler()

void CHILI_SPIDMAIRQHandler ( void  )

Interrupt Handler for SPI DMA.

◆ CHILI_WaitForSystemStable()

void CHILI_WaitForSystemStable ( )

Wait until system is stable after potential usb plug-in.