Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
wait_test.c File Reference

Unit tests for WAIT module. More...

#include <setjmp.h>
#include <stdarg.h>
#include <stddef.h>
#include <cmocka.h>
#include "cascoda-bm/cascoda_dispatch.h"
#include "cascoda-bm/cascoda_evbme.h"
#include "cascoda-bm/cascoda_spi.h"
#include "cascoda-bm/cascoda_wait.h"
#include "cascoda-util/cascoda_time.h"
#include "ca821x_api.h"
Include dependency graph for wait_test.c:

Functions

void CHILI_FastForward (u32_t ticks)
 FastForward time by the given amount. More...
 
void __wrap_BSP_Waiting ()
 
u8_t __wrap_BSP_SPIPopByte (u8_t *InByte)
 
ca_error wakeup_callback (struct HWME_WAKEUP_indication_pset *params, struct ca821x_dev *pDeviceRef)
 
ca_error wakeup_callback_nonwaited (struct HWME_WAKEUP_indication_pset *params, struct ca821x_dev *pDeviceRef)
 
int main (void)
 

Variables

void *const magicNumber = (void *)0x12345
 

Detailed Description

Unit tests for WAIT module.

Function Documentation

◆ __wrap_BSP_SPIPopByte()

u8_t __wrap_BSP_SPIPopByte ( u8_t InByte)

◆ __wrap_BSP_Waiting()

void __wrap_BSP_Waiting ( )

◆ CHILI_FastForward()

void CHILI_FastForward ( u32_t  ticks)

FastForward time by the given amount.

Parameters
ticks- Time in Ticks (1ms/100ms)

◆ main()

int main ( void  )

◆ wakeup_callback()

ca_error wakeup_callback ( struct HWME_WAKEUP_indication_pset params,
struct ca821x_dev pDeviceRef 
)

◆ wakeup_callback_nonwaited()

ca_error wakeup_callback_nonwaited ( struct HWME_WAKEUP_indication_pset params,
struct ca821x_dev pDeviceRef 
)

Variable Documentation

◆ magicNumber

void* const magicNumber = (void *)0x12345