Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
alarm.c File Reference
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "ca821x-posix-thread/posix-platform.h"
#include "openthread/platform/alarm-milli.h"
Include dependency graph for alarm.c:

Macros

#define _DEFAULT_SOURCE   1
 
#define _POSIX_SOURCE   1
 

Functions

void posixPlatformAlarmInit (void)
 This method initializes the alarm service used by OpenThread. More...
 
uint32_t otPlatAlarmMilliGetNow (void)
 
void otPlatAlarmMilliStartAt (otInstance *aInstance, uint32_t t0, uint32_t dt)
 
void otPlatAlarmMilliStop (otInstance *aInstance)
 
void posixPlatformAlarmUpdateTimeout (struct timeval *aTimeout)
 This method retrieves the time remaining until the alarm fires. More...
 
void posixPlatformAlarmProcess (otInstance *aInstance)
 This method performs alarm driver processing. More...
 

Macro Definition Documentation

◆ _DEFAULT_SOURCE

#define _DEFAULT_SOURCE   1

◆ _POSIX_SOURCE

#define _POSIX_SOURCE   1

Function Documentation

◆ otPlatAlarmMilliGetNow()

uint32_t otPlatAlarmMilliGetNow ( void  )

◆ otPlatAlarmMilliStartAt()

void otPlatAlarmMilliStartAt ( otInstance *  aInstance,
uint32_t  t0,
uint32_t  dt 
)

◆ otPlatAlarmMilliStop()

void otPlatAlarmMilliStop ( otInstance *  aInstance)

◆ posixPlatformAlarmInit()

void posixPlatformAlarmInit ( void  )

This method initializes the alarm service used by OpenThread.

◆ posixPlatformAlarmProcess()

void posixPlatformAlarmProcess ( otInstance *  aInstance)

This method performs alarm driver processing.

◆ posixPlatformAlarmUpdateTimeout()

void posixPlatformAlarmUpdateTimeout ( struct timeval *  tv)

This method retrieves the time remaining until the alarm fires.

Parameters
[out]tvA pointer to the timeval struct.