Modules#
Multi Rail Demo#
API and Callbacks for the Multi Rail Demo Component.
This component provides the sample code for using dual RAIL instances. It includes a simple CLI to demonstrate the functionality.
API#
Initialize a new RAIL handle.
Return the second RAIL handle.
Send a packet using the second RAIL instance.
API Documentation#
emberAfPluginMultirailDemoInit#
RAIL_Handle_t emberAfPluginMultirailDemoInit (RAIL_Config_t * railCfg, RAIL_TxPowerConfig_t * txPowerConfig, bool paAutoMode, RAIL_TxPower_t defaultTxPower, uint8_t * txFifo, uint16_t txFifoSize, uint16_t panId, const uint8_t * ieeeAddr)
Initialize a new RAIL handle.
N/A | railCfg | RAIL init options (NULL to use the current Zigbee config) |
N/A | txPowerConfig | RAIL power options (NULL to use defaults) |
N/A | paAutoMode | Whether an automatic PA mode is enabled |
N/A | defaultTxPower | Default TX power in deci-dBm |
N/A | txFifo | Pointer to a TX FIFO buffer (NULL to use the default) |
N/A | txFifoSize | Size of the TX buffer |
N/A | panId | PAN ID (use 0xFFFF if not needed) |
N/A | ieeeAddr | Long IEEE address (use NULL if not needed) |
Returns
New RAIL handle, NULL if not successfully initialized.
62
of file app/framework/plugin/multirail-demo/multirail-demo.h
emberAfPluginMultirailDemoGetHandle#
RAIL_Handle_t emberAfPluginMultirailDemoGetHandle (void )
Return the second RAIL handle.
N/A |
Returns
The second RAIL handle. Null if not initialized.
75
of file app/framework/plugin/multirail-demo/multirail-demo.h
emberAfPluginMultirailDemoSend#
RAIL_Status_t emberAfPluginMultirailDemoSend (const uint8_t * buff, uint32_t size, uint8_t channel, RAIL_ScheduleTxConfig_t * scheduledTxConfig, RAIL_SchedulerInfo_t * schedulerInfo)
Send a packet using the second RAIL instance.
N/A | buff | Pointer to the data (make sue it is properly formatted) |
N/A | size | Size of the data |
N/A | channel | Channel (11-26, or 0 to use the current Zigbee channel) |
N/A | scheduledTxConfig | (optional) |
N/A | schedulerInfo | (optional) Scheduler configuration (NULL to use defaults) |
Returns
RAIL status.
87
of file app/framework/plugin/multirail-demo/multirail-demo.h