 Collaboration diagram for EventDistributor:
 Collaboration diagram for EventDistributor:| Data Structures | |
| struct | event_cc_t | 
| struct | zaf_event_distributor_cc_event_handler_map_v1_t | 
| Macros | |
| #define | ZAF_EVENT_DISTRIBUTOR_CC_EVENT_HANDLER_SECTION "zw_zaf_event_distributor_cc_event_handler" | 
| #define | ZAF_EVENT_DISTRIBUTOR_REGISTER_CC_EVENT_HANDLER(command_class, handler) | 
| Typedefs | |
| typedef void(* | zaf_event_distributor_cc_event_handler_handler_v1_t) (const uint8_t, const void *) | 
| typedef zaf_event_distributor_cc_event_handler_map_v1_t | zaf_event_distributor_cc_event_handler_map_latest_t | 
| Functions | |
| void | zaf_event_distributor_init (void) | 
| Initializes the ZAF Event Distributor component. | |
| const SEventDistributor * | zaf_event_distributor_get (void) | 
| Gets the events distributor. | |
| uint32_t | zaf_event_distributor_distribute (void) | 
| Distributes events. | |
| void | zaf_event_distributor_app_zw_rx (SZwaveReceivePackage *RxPackage) | 
| Used by the application to handle protocol received events. | |
| void | zaf_event_distributor_app_zw_command_status (SZwaveCommandStatusPackage *Status) | 
| Used by the application to handle protocol command status. | |
| void | zaf_event_distributor_app_state_change (void) | 
| Used by the application to handle state changes in the NCP state machine. | |
| void | zaf_event_distributor_app_serial_data_rx (void) | 
| Used by the application to handle serial data received. | |
| void | zaf_event_distributor_app_serial_timeout (void) | 
| Used by the application to handle serial timeout. | |
| void | zaf_event_distributor_app_event_manager (const uint8_t event) | 
| Used by the application to handle application/system received events. | |
| uint8_t | zaf_event_distributor_is_primary_controller (void) | 
| Used by application to verify if it is a primary controller. | |
| bool | zaf_event_distributor_enqueue_app_event (const uint8_t event) | 
| Enqueues an event in the application queue. | |
| bool | zaf_event_distributor_enqueue_app_event_from_isr (const uint8_t event) | 
| Enqueues an event in the application queue. | |
| bool | zaf_event_distributor_enqueue_cc_event (const uint16_t command_class, const uint8_t event, const void *data) | 
| Enqueues an event in the command class event queue. | |
| bool | zaf_event_distributor_enqueue_cc_event_from_isr (const uint16_t command_class, const uint8_t event, const void *data) | 
| Enqueues an event in the command class event queue. | |
| #define ZAF_EVENT_DISTRIBUTOR_CC_EVENT_HANDLER_SECTION "zw_zaf_event_distributor_cc_event_handler" | 
Section name
| #define ZAF_EVENT_DISTRIBUTOR_REGISTER_CC_EVENT_HANDLER | ( | command_class, | |
| handler ) | 
Registers a custom event handler for a specific command class
| [in] | command_class | Command Class | 
| [in] | handler | Address of the handler function. | 
| typedef void(* zaf_event_distributor_cc_event_handler_handler_v1_t) (const uint8_t, const void *) | 
| typedef zaf_event_distributor_cc_event_handler_map_v1_t zaf_event_distributor_cc_event_handler_map_latest_t | 
Redefine latest version to a common define called latest
| 
 | extern | 
Used by the application to handle application/system received events.
| event | application/system received event | 
| 
 | extern | 
Used by the application to handle serial data received.
| 
 | extern | 
Used by the application to handle serial timeout.
| 
 | extern | 
Used by the application to handle state changes in the NCP state machine.
| void zaf_event_distributor_app_zw_command_status | ( | SZwaveCommandStatusPackage * | Status | ) | 
Used by the application to handle protocol command status.
| Status | ZW Command Status Package | 
| void zaf_event_distributor_app_zw_rx | ( | SZwaveReceivePackage * | RxPackage | ) | 
Used by the application to handle protocol received events.
| RxPackage | ZW Receive Package | 
| uint32_t zaf_event_distributor_distribute | ( | void | ) | 
Distributes events.
Wraps EventDistributorDistribute().
| bool zaf_event_distributor_enqueue_app_event | ( | const uint8_t | event | ) | 
Enqueues an event in the application queue.
| event | The event to enqueue. | 
| bool zaf_event_distributor_enqueue_app_event_from_isr | ( | const uint8_t | event | ) | 
Enqueues an event in the application queue.
| event | The event to enqueue. | 
| bool zaf_event_distributor_enqueue_cc_event | ( | const uint16_t | command_class, | 
| const uint8_t | event, | ||
| const void * | data ) | 
Enqueues an event in the command class event queue.
| command_class | The command class to receive the event | 
| event | The event to enqueue. | 
| data | A data pointer. It must point to a global variable | 
| bool zaf_event_distributor_enqueue_cc_event_from_isr | ( | const uint16_t | command_class, | 
| const uint8_t | event, | ||
| const void * | data ) | 
Enqueues an event in the command class event queue.
| command_class | The command class to receive the event | 
| event | The event to enqueue. | 
| data | A data pointer. It must point to a global variable | 
| const SEventDistributor * zaf_event_distributor_get | ( | void | ) | 
Gets the events distributor.
Each variation (NCP,SOC) must implement it's own event distributor table
| void zaf_event_distributor_init | ( | void | ) | 
Initializes the ZAF Event Distributor component.
This function invokes EventDistributorConfig().
| uint8_t zaf_event_distributor_is_primary_controller | ( | void | ) | 
Used by application to verify if it is a primary controller.