Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
#include <arm_cmse.h>
#include <assert.h>
#include <stdio.h>
#include "M2351.h"
#include "cascoda-bm/cascoda_interface.h"
#include "cascoda-bm/cascoda_spi.h"
#include "cascoda-bm/cascoda_types.h"
#include "cascoda_chili.h"
#include "cascoda_secure.h"
Macros | |
#define | MAX(x, y) ((x) > (y) ? (x) : (y)) |
#define | MIN(x, y) ((x) < (y) ? (x) : (y)) |
Enumerations | |
enum | SPIDMA_NextState { SPIDMA_END , SPIDMA_RX , SPIDMA_TX } |
Functions | |
void | CHILI_SPIDMAIRQHandler () |
Interrupt Handler for SPI DMA. More... | |
__NONSECURE_ENTRY void | BSP_SPIExchange (uint8_t *RxBuf, const uint8_t *TxBuf, uint8_t RxLen, uint8_t TxLen) |
__NONSECURE_ENTRY void | CHILI_RegisterSPIComplete (void(*callback)(void)) |
Register the SPIComplete callback on trustzone (Compiles to nothing on non-tz) More... | |
#define MAX | ( | x, | |
y | |||
) | ((x) > (y) ? (x) : (y)) |
#define MIN | ( | x, | |
y | |||
) | ((x) < (y) ? (x) : (y)) |
enum SPIDMA_NextState |
__NONSECURE_ENTRY void BSP_SPIExchange | ( | uint8_t * | RxBuf, |
const uint8_t * | TxBuf, | ||
uint8_t | RxLen, | ||
uint8_t | TxLen | ||
) |
__NONSECURE_ENTRY void CHILI_RegisterSPIComplete | ( | void(*)(void) | callback | ) |
Register the SPIComplete callback on trustzone (Compiles to nothing on non-tz)
void CHILI_SPIDMAIRQHandler | ( | void | ) |
Interrupt Handler for SPI DMA.