XBee Firmware Library  1.6.0
Functions

Functions

void sys_clocks_init (void)
 Initializes all the system clocks. More...
 
uint8_t sys_get_hw_id (void)
 Gets the hardware ID of the device. More...
 
void sys_halt (char *str)
 Prints out the given string, disables IRQs and stops the application execution. More...
 
void sys_init (void)
 Initializes the device. Calls the different module initialization functions. More...
 
void sys_irqs_disable (void)
 Disables the IRQs. More...
 
void sys_irqs_enable (void)
 Enables the IRQs. More...
 
void sys_reset (app_rst_casuses_t reason)
 Restarts the device. More...
 
void sys_udelay (uint8_t delay)
 Performs a software delay of delay micro seconds. More...
 
void sys_watchdog_reset (void)
 Resets the watchdog timer. More...
 
int sys_xbee_tick (void)
 Calls wpan_tick or xbee_dev_tick depending on the configuration of the ZigBee network. The callee will poll the underlaying hardware for new frames that will be processed by the respective frame handlers. wpan_tick also time outs expired conversations. Needs to be called often enough to keep up with inbound bytes. More...
 
int sys_xbee_init (void)
 Initializes the ZigBee network. Will initailize or not, depending on the configuration the APS-layer (endpoint/cluster). More...
 

Detailed Description

Platform-specific layer provides a consistent System API to upper layers of the driver.

System API Overview

This API contains the functions to configure and control the system module of the programmable XBee devices.

Function Documentation

void sys_clocks_init ( void  )

Initializes all the system clocks.

Parameters
None
Return values
None
uint8_t sys_get_hw_id ( void  )

Gets the hardware ID of the device.

Parameters
None.
Return values
uint8_tthe hardware ID of the module.
void sys_halt ( char *  str)

Prints out the given string, disables IRQs and stops the application execution.

Parameters
[in]strthe message to print.
Return values
None
void sys_init ( void  )

Initializes the device. Calls the different module initialization functions.

Parameters
None
Return values
None
void sys_irqs_disable ( void  )

Disables the IRQs.

Parameters
None
Return values
None
void sys_irqs_enable ( void  )

Enables the IRQs.

Parameters
None
Return values
None
void sys_reset ( app_rst_casuses_t  reason)

Restarts the device.

Parameters
[in]reasonthe reason ID for the reset. See the app_rst_casuses_t type value for more information.
Return values
None
void sys_udelay ( uint8_t  delay)

Performs a software delay of delay micro seconds.

Parameters
delaynumber of microseconds to delay the program execution.
Return values
None.
void sys_watchdog_reset ( void  )

Resets the watchdog timer.

Parameters
None
Return values
None
int sys_xbee_init ( void  )

Initializes the ZigBee network. Will initailize or not, depending on the configuration the APS-layer (endpoint/cluster).

Parameters
[in]xbeeXBee device to configure.
Return values
0on success, error code otherwise.
int sys_xbee_tick ( void  )

Calls wpan_tick or xbee_dev_tick depending on the configuration of the ZigBee network. The callee will poll the underlaying hardware for new frames that will be processed by the respective frame handlers. wpan_tick also time outs expired conversations. Needs to be called often enough to keep up with inbound bytes.

Parameters
[in]xbeeXBee device to check for, and then dispatch, new frames.
Return values
VariableThe value returned by xbee_dev_tick or wpan_tick, The depending on the function called. Check that functions for additional information.