
Functions | |
| zb_ret_t | gboss_unidir_commissioning_step (const gboss_device_config_t *device_config, const gboss_tx_cfg_t *tx_cfg) |
| Does one step of unidirectional commissioning, or decommissions if a device was marked as "commissioned". More... | |
| zb_ret_t | gboss_unidir_decommission (const gboss_device_config_t *device_config, const gboss_tx_cfg_t *tx_cfg) |
| Decommissions the device - unidirectional. More... | |
| void | gboss_bidir_operational_init (const gboss_device_config_t *device_config, const gboss_tx_cfg_t *tx_cfg) |
| Initializes bidirectional operational mode with an application parameters. More... | |
| zb_ret_t | gboss_bidir_commissioning_step (const gboss_device_config_t *device_config, const gboss_tx_cfg_t *tx_cfg) |
| Does one step of bidirectional commissioning. More... | |
| zb_bool_t | gboss_bidir_is_commissionned (void) |
| Checks if this bidirectional GPP is commissioned. More... | |
| zb_ret_t | gboss_bidir_decommission (const gboss_device_config_t *device_config, const gboss_tx_cfg_t *tx_cfg) |
| Decommissions the device - bidirectional. More... | |
| void | gboss_bidir_battery_mode (void) |
| Configures the device as a battery-powered bidirectional commissioning GPD. More... | |
| void | gboss_bidir_batteryless_mode (void) |
| Configures the device as a battery-less bidirectional commissioning GPD. More... | |
| zb_ret_t gboss_unidir_commissioning_step | ( | const gboss_device_config_t * | device_config, |
| const gboss_tx_cfg_t * | tx_cfg | ||
| ) |
Does one step of unidirectional commissioning, or decommissions if a device was marked as "commissioned".
GreenBOSS supposes that unidirectional commissioning is used at battery-less devices, so it's likely that the GPD doesn't have enough power to perform anything after that function return.
With unidirectional commissioning GreenBOSS marks device as "commissioned" at transmitting first application packet (GPD command), like GBOSS_CMD_ON(), after gboss_unidir_commissioning_step() was called 1 or more times.
| device_config | GPD configuration data structure |
| tx_cfg | Configuration of transmission - channels and number of repetitions to be used |
References zgpd_get_seq_number().
| zb_ret_t gboss_unidir_decommission | ( | const gboss_device_config_t * | device_config, |
| const gboss_tx_cfg_t * | tx_cfg | ||
| ) |
Decommissions the device - unidirectional.
| device_config | GPD configuration data structure |
| tx_cfg | Configuration of transmission - channels and number of repetitions to be used |
References TRACE_MSG.
| void gboss_bidir_operational_init | ( | const gboss_device_config_t * | device_config, |
| const gboss_tx_cfg_t * | tx_cfg | ||
| ) |
Initializes bidirectional operational mode with an application parameters.
| device_config | GPD configuration data structure |
| tx_cfg | Configuration of transmission - channels and number of repetitions to be used |
References TRACE_MSG.
| zb_ret_t gboss_bidir_commissioning_step | ( | const gboss_device_config_t * | device_config, |
| const gboss_tx_cfg_t * | tx_cfg | ||
| ) |
Does one step of bidirectional commissioning.
Repeats commissioning steps until gboss_bidir_is_commissionned() returns true.
| device_config | GPD configuration data structure |
| tx_cfg | Configuration of transmission - channels and number of repetitions to be used |
References TRACE_MSG.
| zb_bool_t gboss_bidir_is_commissionned | ( | void | ) |
Checks if this bidirectional GPP is commissioned.
| zb_ret_t gboss_bidir_decommission | ( | const gboss_device_config_t * | device_config, |
| const gboss_tx_cfg_t * | tx_cfg | ||
| ) |
Decommissions the device - bidirectional.
| device_config | GPD configuration data structure |
| tx_cfg | Configuration of transmission - channels and number of repetitions to be used |
References TRACE_MSG.
| void gboss_bidir_battery_mode | ( | void | ) |
Configures the device as a battery-powered bidirectional commissioning GPD.
gboss_bidir_battery_mode() SHALL be called at the application initialization before gboss_bidir_is_commissionned().
| void gboss_bidir_batteryless_mode | ( | void | ) |
Configures the device as a battery-less bidirectional commissioning GPD.
gboss_bidir_batteryless_mode()SHALL be called at the application initialization before gboss_bidir_is_commissionned().
References TRACE_MSG.