Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
This file includes the platform-specific initializers. More...
#include <assert.h>
#include <errno.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/time.h>
#include "ca821x-posix-thread/posix-platform.h"
#include "openthread/platform/alarm-milli.h"
#include "openthread/tasklet.h"
#include "selfpipe.h"
Functions | |
void | posixPlatformSetOrigArgs (int argc, char *argv[]) |
This method stores the original arguments given to the program. More... | |
int | posixPlatformInit (void) |
This method performs all platform-specific initialization. More... | |
void | otTaskletsSignalPending (otInstance *aInstance) |
void | posixPlatformGetTimeout (otInstance *aInstance, struct timeval *timeout) |
This method gets the timeout for the sleep function, and places it in the timeout struct. More... | |
void | posixPlatformSleep (otInstance *aInstance, struct timeval *timeout) |
This method sleeps until there is further work to do (allowing the application to access the openthread API) -Must run immediately after posixPlatformGetTimeout! More... | |
void | posixPlatformProcessDriversQuick (otInstance *aInstance) |
This method performs all platform-specific processing without sleeping at the end. More... | |
void | posixPlatformProcessDrivers (otInstance *aInstance) |
This method performs all platform-specific processing. More... | |
Variables | |
int | gArgumentsCount = 0 |
char ** | gArguments = NULL |
uint32_t | NODE_ID = 1 |
Unique node ID. More... | |
This file includes the platform-specific initializers.
void otTaskletsSignalPending | ( | otInstance * | aInstance | ) |
void posixPlatformGetTimeout | ( | otInstance * | aInstance, |
struct timeval * | timeout | ||
) |
This method gets the timeout for the sleep function, and places it in the timeout struct.
int posixPlatformInit | ( | void | ) |
This method performs all platform-specific initialization.
void posixPlatformProcessDrivers | ( | otInstance * | aInstance | ) |
This method performs all platform-specific processing.
void posixPlatformProcessDriversQuick | ( | otInstance * | aInstance | ) |
This method performs all platform-specific processing without sleeping at the end.
Should be used in conjunction with posixPlatformSleep.
void posixPlatformSetOrigArgs | ( | int | argc, |
char * | argv[] | ||
) |
This method stores the original arguments given to the program.
void posixPlatformSleep | ( | otInstance * | aInstance, |
struct timeval * | timeout | ||
) |
This method sleeps until there is further work to do (allowing the application to access the openthread API) -Must run immediately after posixPlatformGetTimeout!
char** gArguments = NULL |
int gArgumentsCount = 0 |
uint32_t NODE_ID = 1 |
Unique node ID.