Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
cascoda_sensorif_secure.c File Reference
#include <stdio.h>
#include "M2351.h"
#include "i2c.h"
#include "spi.h"
#include "sys.h"
#include "cascoda-bm/cascoda_interface.h"
#include "cascoda-bm/cascoda_sensorif.h"
#include "cascoda-bm/cascoda_types.h"
#include "cascoda_chili.h"
#include "cascoda_chili_config.h"
Include dependency graph for cascoda_sensorif_secure.c:

Macros

#define NOT_USED   0
 

Functions

__NONSECURE_ENTRY void SENSORIF_SECURE_I2C_Config (u32_t portnum)
 
__NONSECURE_ENTRY void SENSORIF_SECURE_SPI_Config (u32_t portnum)
 
__NONSECURE_ENTRY void SENSORIF_SECURE_UART_Config (u32_t portnum)
 
__NONSECURE_ENTRY void SENSORIF_I2C_Init (void)
 Initialises and enables I2C interface. More...
 
__NONSECURE_ENTRY void SENSORIF_I2C_Deinit (void)
 Disables I2C interface. More...
 
__NONSECURE_ENTRY void SENSORIF_SPI_Init (bool is_eink_display_present)
 Initialises and enables SPI interface. More...
 
__NONSECURE_ENTRY void SENSORIF_SPI_Deinit (void)
 Disables SPI interface. More...
 
__NONSECURE_ENTRY void SENSORIF_UART_Init (void)
 Initialises and enables UART interface. More...
 
__NONSECURE_ENTRY void SENSORIF_UART_Deinit (void)
 Disables UART interface. More...
 
__NONSECURE_ENTRY ca_error SENSORIF_PWM_Init (u8_t pin, u32_t u32Frequency, u32_t u32DutyCycle)
 Initialises and enables PWM for the specified frequency and duty cycle. More...
 
__NONSECURE_ENTRY void SENSORIF_PWM_Deinit (void)
 Deinitialises and disables PWM. More...
 
void SENSORIF_PWM_SetDutyCycle (u32_t u32DutyCycle)
 Changes the duty cycle of the PWM. More...
 

Variables

PWM_type_t SENSORIF_PWM_TYPE_S
 

Macro Definition Documentation

◆ NOT_USED

#define NOT_USED   0

Function Documentation

◆ SENSORIF_SECURE_I2C_Config()

__NONSECURE_ENTRY void SENSORIF_SECURE_I2C_Config ( u32_t  portnum)

◆ SENSORIF_SECURE_SPI_Config()

__NONSECURE_ENTRY void SENSORIF_SECURE_SPI_Config ( u32_t  portnum)

◆ SENSORIF_SECURE_UART_Config()

__NONSECURE_ENTRY void SENSORIF_SECURE_UART_Config ( u32_t  portnum)

Variable Documentation

◆ SENSORIF_PWM_TYPE_S

PWM_type_t SENSORIF_PWM_TYPE_S