Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
cascoda_chili.c File Reference
#include <stdio.h>
#include "Nano100Series.h"
#include "adc.h"
#include "gpio.h"
#include "spi.h"
#include "sys.h"
#include "timer.h"
#include "uart.h"
#include "usbd.h"
#include "cascoda-bm/cascoda_evbme.h"
#include "cascoda-bm/cascoda_interface.h"
#include "cascoda-bm/cascoda_spi.h"
#include "cascoda-bm/cascoda_types.h"
#include "cascoda-util/cascoda_time.h"
#include "ca821x_api.h"
#include "cascoda_chili.h"
#include "cascoda_chili_gpio.h"
Include dependency graph for cascoda_chili.c:

Functions

u32_t CHILI_ADCConversion (u32_t channel, u32_t reference)
 Perform ADC Conversion. More...
 
void CHILI_GPIOInit (void)
 Initialise Essential GPIOs for various Functions. More...
 
void CHILI_GPIOPowerDown (u8_t useGPIOforWakeup)
 Re-program GPIOs for PowerDown. More...
 
void CHILI_GPIOPowerUp (void)
 Re-program GPIOs for active Mode after PowerDown. More...
 
void CHILI_GPIOEnableInterrupts (void)
 Enable GPIO Interrupts. More...
 
ca_error CHILI_ClockInit (void)
 Select System Clocks depending on Power Source. More...
 
void CHILI_CompleteClockInit (void)
 Completes Clock (Re-)Initialisation. More...
 
void CHILI_EnableIntOscCal (void)
 Enable Internal Oscillator Calibration. More...
 
void CHILI_DisableIntOscCal (void)
 Disable Internal Oscillator Calibration. More...
 
void CHILI_TimersInit (void)
 (Re-)Initialise System Timers More...
 
void CHILI_SystemReInit ()
 System Re-Initialisation. More...
 

Function Documentation

◆ CHILI_ADCConversion()

u32_t CHILI_ADCConversion ( u32_t  channel,
u32_t  reference 
)

Perform ADC Conversion.

◆ CHILI_ClockInit()

ca_error CHILI_ClockInit ( void  )

Select System Clocks depending on Power Source.

◆ CHILI_CompleteClockInit()

void CHILI_CompleteClockInit ( void  )

Completes Clock (Re-)Initialisation.

◆ CHILI_DisableIntOscCal()

void CHILI_DisableIntOscCal ( void  )

Disable Internal Oscillator Calibration.

◆ CHILI_EnableIntOscCal()

void CHILI_EnableIntOscCal ( void  )

Enable Internal Oscillator Calibration.

◆ CHILI_GPIOEnableInterrupts()

void CHILI_GPIOEnableInterrupts ( void  )

Enable GPIO Interrupts.

◆ CHILI_GPIOInit()

void CHILI_GPIOInit ( void  )

Initialise Essential GPIOs for various Functions.

◆ CHILI_GPIOPowerDown()

void CHILI_GPIOPowerDown ( u8_t  useGPIOforWakeup)

Re-program GPIOs for PowerDown.

Parameters
useGPIOforWakeup- bool: GPIOs for wakeup

◆ CHILI_GPIOPowerUp()

void CHILI_GPIOPowerUp ( void  )

Re-program GPIOs for active Mode after PowerDown.

◆ CHILI_SystemReInit()

void CHILI_SystemReInit ( void  )

System Re-Initialisation.

◆ CHILI_TimersInit()

void CHILI_TimersInit ( void  )

(Re-)Initialise System Timers