Digi XBee(R) ANSI C Host Library
|
Support for Digi International products using libdigiapix to control GPIO pins. More...
Files | |
file | platform_config.h |
file | xbee_platform_digiapix.c |
Based on POSIX platform, with additional code to interface with /RESET, SLEEP_REQ, ON/nSLEEP and XBEE_IDENT pins. | |
Data Structures | |
struct | gpio_xbee_t |
Macros | |
#define | XBEE_PLATFORM_INIT() digiapix_platform_init() |
#define | XBEE_RESET_FN &digiapix_xbee_reset |
#define | XBEE_IS_AWAKE_FN &digiapix_xbee_is_awake |
#define | CC6UL_IO(x) (465U + (x)) |
Enumerations | |
enum | { IO_XBEE_RESET, IO_XBEE_ON_NSLEEP } |
Functions | |
int | digiapix_platform_init (void) |
void | digiapix_xbee_reset (struct xbee_dev_t *xbee, bool_t asserted) |
int | digiapix_xbee_is_awake (struct xbee_dev_t *xbee) |
uint32_t | xbee_seconds_timer () |
Platform-specific function to return the number of elapsed seconds. More... | |
uint32_t | xbee_millisecond_timer () |
Platform-specific function to return the number of elapsed milliseconds. More... | |
Variables | |
const gpio_xbee_t | gpio_config [] |
gpio_t * | gpio [_TABLE_ENTRIES(gpio_config)] |
Support for Digi International products using libdigiapix to control GPIO pins.
int digiapix_xbee_is_awake | ( | struct xbee_dev_t * | xbee | ) |
References EIO.
void digiapix_xbee_reset | ( | struct xbee_dev_t * | xbee, |
bool_t | asserted | ||
) |
uint32_t xbee_millisecond_timer | ( | void | ) |
Platform-specific function to return the number of elapsed milliseconds.
OK for this counter to rollover. Used for timing and should have a resolution of at least 60ms.
(Function name wrapped in parentheses so platforms can use a macro function of the same name.)
uint32_t xbee_seconds_timer | ( | void | ) |
Platform-specific function to return the number of elapsed seconds.
On some platforms, this is the equivalent of an "uptime".
On other platforms, it may reflect the value of the RTC, which might not be synchronized with a time server and might include leap seconds.
Regardless, it should consistently report elapsed time and not jump on clock synchronization.
In addition to determining timeouts, the ZCL Time Cluster makes use of it to report current time.
(Function name wrapped in parentheses so platforms can use a macro function of the same name.)
const gpio_xbee_t gpio_config[] |