Zigbee Protocol Controller 1.6.0
main.c File Reference

Functions

int main (int argc, char **argv)
 

Variables

static uic_fixt_setup_step_t uic_fixt_setup_steps_list []
 ZigPC Pre-contiki set-up steps. More...
 
static uic_fixt_shutdown_step_t uic_fixt_shutdown_steps_list []
 ZigPC Final tear-down steps. More...
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ uic_fixt_setup_steps_list

uic_fixt_setup_step_t uic_fixt_setup_steps_list[]
static
Initial value:
= {
{zigpc_config_fixt_setup, "ZigPC Config"},
{zigpc_ncp_updater_setup, "ZigPC NCP Updater"},
{&zigpc_application_monitoring_init, "ZigPC ApplicationMonitoring"},
{&attribute_store_init, "Attribute store"},
{&zigpc_gateway_process_setup, "ZigPC Gateway"},
{&zigpc_zclcmdparse_setup, "ZigPC ZCL Command Parser"},
{&zigpc_zcl_profiles_init, "ZigPC ZCL Profiles"},
{&zigpc_binding_setup, "ZigPC Binding"},
{&zigpc_discovery_fixt_setup, "ZigPC Discovery"},
{&zigpc_net_mgmt_process_setup, "ZigPC Network Management"},
{&attribute_management_setup, "ZigPC Attribute Management"},
{&zigpc_command_mapper_setup, "ZigPC Command Mapper"},
{&zigpc_smartstart_setup, "ZigPC SmartStart"},
{&zigpc_ota_init, "ZigPC OTA"},
{&zigpc_ctrl_fixt_setup, "ZigPC Controller"},
{&zigpc_diagnostics_init_fixt, " ZigPC Diagnostics"},
{&zigpc_ucl_fixt_setup, "ZigPC UCL Util"},
{&uic_mqtt_dotdot_init, " DotDot MQTT Translator"},
{&zigpc_group_init, "ZigPC Groups Management"},
{&zigpc_stdin_setup_fixt, "ZigPC STDIN"},
{NULL, "Terminator"},
}
sl_status_t zigpc_zcl_profiles_init(void)
init_cluster_attributes - the API for instantiating cluster attributes Required to set up all attribu...
sl_status_t attribute_management_setup(void)
attribute_management_setup - sets up the parts of the software used by the attribute manager
Definition: attribute_management_process.c:41
sl_status_t attribute_store_init(void)
Initialize the Attribute store.
sl_status_t zigpc_command_mapper_setup(void)
zigpc_command_mapper_setup - sets up the parts of the software used by the command mapper
Definition: zigpc_command_mapper.c:367
sl_status_t uic_mqtt_dotdot_init()
#define NULL
Definition: list.c:50
sl_status_t zigpc_ota_init()
sl_status_t zigpc_application_monitoring_init()
Initializes the ApplicationMonitoring resources for the ZigPC.
Definition: zigpc_application_monitoring.c:19
sl_status_t zigpc_binding_setup()
zigpc_binding_setup - set up the zigpc_binding component
sl_status_t zigpc_config_fixt_setup(void)
Fixture for setting up the zigpc_config component.
Definition: zigpc_config.c:113
sl_status_t zigpc_ctrl_fixt_setup(void)
Setup routines as a part of ZigPC Controller.
sl_status_t zigpc_uic_datastore_fixt_setup(void)
Fixture for setting up the zigpc_datastore component.
Definition: zigpc_uic_datastore_fixt.c:26
sl_status_t zigpc_discovery_fixt_setup(void)
Setup fixture for zigpc discovery component.
sl_status_t zigpc_gateway_process_setup(void)
Set up the function for the zigpc_gateway component.
sl_status_t zigpc_group_init()
zigpc_groups_init Initialize the groups component. Sets up all the parts required for groups operatio...
Definition: zigpc_group_mgmt.c:66
sl_status_t zigpc_ncp_updater_setup(void)
sl_status_t zigpc_net_mgmt_process_setup(void)
Setup function for the ZigPC Network Management process.
Definition: zigpc_net_mgmt_process.c:36
sl_status_t zigpc_smartstart_setup(void)
Set up function for the ZigPC SmartStart Component.
sl_status_t zigpc_stdin_setup_fixt(void)
Setup fixture for the ZigPC STDIN.
sl_status_t zigpc_ucl_fixt_setup(void)
Setup fixture for ZigPC UCL component.
sl_status_t zigpc_zclcmdparse_setup(void)
Initialize the command parser component. This function should Listen to gateway cluster commands rece...
sl_status_t zigpc_diagnostics_init_fixt(void)

ZigPC Pre-contiki set-up steps.

The set-up steps are executed in order, before launching contiki and starting the contiki processes.

◆ uic_fixt_shutdown_steps_list

uic_fixt_shutdown_step_t uic_fixt_shutdown_steps_list[]
static
Initial value:
= {
{zigpc_ucl_fixt_shutdown, "ZigPC UCL Util"},
{zigpc_ctrl_fixt_shutdown, "ZigPC Controller"},
{zigpc_smartstart_shutdown, "ZigPC SmartStart"},
{zigpc_command_mapper_shutdown, "ZigPC Command Mapper"},
{attribute_management_shutdown, "ZigPC Attribute Management"},
{zigpc_net_mgmt_process_shutdown, "ZigPC Network Management"},
{zigpc_discovery_fixt_shutdown, "ZigPC Discovery"},
{zigpc_binding_shutdown, "ZigPC Binding"},
{zigpc_gateway_process_shutdown, "ZigPC Gateway"},
{attribute_store_teardown, "Attribute store"},
{datastore_fixt_teardown, "Datastore"},
{zigpc_ncp_updater_shutdown, "ZigPC NCP Updater"},
{NULL, "Terminator"},
}
int attribute_management_shutdown(void)
attribute_management_shutdown - graceful shuts down all parts of the attribute_management component,...
Definition: attribute_management_process.c:53
int attribute_store_teardown(void)
Clears up the Attribute Store from all its content.
int zigpc_command_mapper_shutdown(void)
zigpc_command_mapper_shutdown - graceful shuts down all parts of the command mapper,...
Definition: zigpc_command_mapper.c:382
int datastore_fixt_teardown()
Fixture to tear down the datastore.
Definition: datastore_fixt.c:209
int zigpc_binding_shutdown(void)
zigpc_binding_shutdown - shutdown the zigpc_binding component
int zigpc_ctrl_fixt_shutdown(void)
Graceful shutdown of ZigPC Controller modules, expected to be called before the program exits.
int zigpc_discovery_fixt_shutdown(void)
Shutdown fixture for zigpc discovery component.
int zigpc_gateway_process_shutdown(void)
Tear-down function for the zigpc_gateway component.
int zigpc_ncp_updater_shutdown(void)
int zigpc_net_mgmt_process_shutdown(void)
Definition: zigpc_net_mgmt_process.c:55
int zigpc_smartstart_shutdown(void)
Shut down function for the ZigPC SmartStart Component.
int zigpc_ucl_fixt_shutdown(void)
Shutdown fixture for ZigPC UCL component.

ZigPC Final tear-down steps.

Functions to take down components and free allocated resources. The function are executed in order, after all contiki processes have been stopped.