Collaboration diagram for CentralScene:Data Structures | |
| struct | central_scene_configuration_t |
| struct | s_CC_centralScene_data_t_ |
| struct | _cc_central_scene_t |
Macros | |
| #define | CC_CENTRAL_SCENE_SIZE_OF_SUPPORTED_SCENES_ATTRIBUTES sizeof(((cc_central_scene_t *)0)->scene_attributes) |
Typedefs | |
| typedef struct s_CC_centralScene_data_t_ | s_CC_centralScene_data_t |
| typedef struct _cc_central_scene_t | cc_central_scene_t |
Functions | |
| JOB_STATUS | cc_central_scene_notification_tx (AGI_PROFILE *pProfile, uint8_t keyAttribute, uint8_t sceneNumber, ZAF_TX_Callback_t pCbFunc) |
| void | cc_central_scene_handle_notification_timer (bool start_timer, uint8_t scene_number) |
| cc_central_scene_t * | cc_central_scene_config_get_scenes_attributes (void) |
| uint8_t | cc_central_scene_config_get_number_of_scenes (void) |
| uint8_t | cc_central_scene_config_get_attribute_bitmask (uint8_t scene_number) |
| uint8_t | cc_central_scene_config_get_identical (void) |
| bool | cc_central_scene_read (central_scene_configuration_t *pConfig) |
| bool | cc_central_scene_write (const central_scene_configuration_t *pConfig) |
| void | cc_central_scene_migrate (void) |
| #define CC_CENTRAL_SCENE_SIZE_OF_SUPPORTED_SCENES_ATTRIBUTES sizeof(((cc_central_scene_t *)0)->scene_attributes) |
Size of supported scenes. This field advertises the size of each "Supported Key Attributes" field measured in bytes.
| typedef struct _cc_central_scene_t cc_central_scene_t |
Structure that describes a single scene
| typedef struct s_CC_centralScene_data_t_ s_CC_centralScene_data_t |
| uint8_t cc_central_scene_config_get_attribute_bitmask | ( | uint8_t | scene_number | ) |
Returns supported attributes for a given scene
| scene_number | Number of scene to get supported attributes for |
| uint8_t cc_central_scene_config_get_identical | ( | void | ) |
Gets 'identical' attribute that describes supported key attributes
| uint8_t cc_central_scene_config_get_number_of_scenes | ( | void | ) |
Returns number of supported scenes
| cc_central_scene_t * cc_central_scene_config_get_scenes_attributes | ( | void | ) |
Returns the array of central scenes.
| void cc_central_scene_handle_notification_timer | ( | bool | start_timer, |
| uint8_t | scene_number ) |
Start or stop Central Scene Notification timer Used when event CENTRAL_SCENE_NOTIFICATION_KEY_ATTRIBUTES_KEY_HELD_DOWN happens. App will send notifications periodically as long as the event is active. Frequency depends on whether slow refresh is enabled or not.
| start_timer | True if timer should be started, false will stop active timer. |
| scene_number | Number of active scene. |
| void cc_central_scene_migrate | ( | void | ) |
| JOB_STATUS cc_central_scene_notification_tx | ( | AGI_PROFILE * | pProfile, |
| uint8_t | keyAttribute, | ||
| uint8_t | sceneNumber, | ||
| ZAF_TX_Callback_t | pCbFunc ) |
Initiates the transmission of a "Central Scene Notification" command.
| [in] | pProfile | pointer to AGI profile or NULL for lifeline |
| [in] | keyAttribute | The key event. |
| [in] | sceneNumber | The scene number. |
| [in] | pCbFunc | Callback function to be called when transmission is done/failed. |
| bool cc_central_scene_read | ( | central_scene_configuration_t * | pConfig | ) |
| bool cc_central_scene_write | ( | const central_scene_configuration_t * | pConfig | ) |