Data Structures | |
struct | _cc_notification_t |
Typedefs | |
typedef uint8_t | notification_event_state |
typedef struct _cc_notification_t | cc_notification_t |
Enumerations | |
enum | NOTIFICATION_STATUS { NOTIFICATION_STATUS_UNSOLICIT_DEACTIVATED = 0x00 , NOTIFICATION_STATUS_UNSOLICIT_ACTIVATED = 0xFF } |
Functions | |
cc_notification_t * | cc_notification_get_config (void) |
uint8_t | cc_notification_get_config_length (void) |
uint8_t | cc_notification_get_supported_events_length (void) |
cc_notification_t * | cc_notification_get (uint8_t index) |
int8_t | cc_notification_get_index_by_type_and_endpoint (notification_type_t type, uint8_t endpoint) |
notification_type_t | cc_notification_get_type (uint8_t index) |
notification_event_state | cc_notification_get_current_event (uint8_t index) |
agi_profile_t | cc_notification_get_agi_profile (uint8_t index) |
uint8_t | cc_notification_get_endpoint (uint8_t index) |
NOTIFICATION_STATUS | cc_notification_get_status (uint8_t index) |
bool | cc_notification_is_type_supported (notification_type_t type) |
int8_t | cc_notification_find_event (uint8_t event, uint8_t index) |
uint8_t | cc_notification_config_get_number_of_events (uint8_t index) |
typedef struct _cc_notification_t cc_notification_t |
typedef uint8_t notification_event_state |
enum NOTIFICATION_STATUS |
uint8_t cc_notification_config_get_number_of_events | ( | uint8_t | index | ) |
Returns the number of configured events for a given notification index.
index | Notification index. |
int8_t cc_notification_find_event | ( | uint8_t | event, |
uint8_t | index ) |
Returns the index of a given event, if supported, for a given notification index.
[in] | event | Event to be found. |
[in] | index | Notification index in notifications array |
cc_notification_t * cc_notification_get | ( | uint8_t | index | ) |
Returns the address of the notification located at the given index in the notification array.
[in] | index | Index in the notification array. |
agi_profile_t cc_notification_get_agi_profile | ( | uint8_t | index | ) |
Returns the AGI profile of a notification given by the index in the notification array.
[in] | index | Index in the notification array. |
cc_notification_t * cc_notification_get_config | ( | void | ) |
Returns the address of the first element in the notification array.
uint8_t cc_notification_get_config_length | ( | void | ) |
Returns the number of elements in the notification array.
notification_event_state cc_notification_get_current_event | ( | uint8_t | index | ) |
Returns the current event of a notification given by the index in the notification array.
[in] | index | Index in the notification array. |
uint8_t cc_notification_get_endpoint | ( | uint8_t | index | ) |
Returns endpoint of a notification given by the index in the notification array.
[in] | index | Index in the notification array. |
int8_t cc_notification_get_index_by_type_and_endpoint | ( | notification_type_t | type, |
uint8_t | endpoint ) |
Returns the index of a notification based on given type and endpoint.
[in] | type | Notification type. |
[in] | endpoint | Endpoint. |
NOTIFICATION_STATUS cc_notification_get_status | ( | uint8_t | index | ) |
Returns the status (on/off) of a notification given by the index in the notification array.
[in] | index | Index in the notification array. |
uint8_t cc_notification_get_supported_events_length | ( | void | ) |
Returns the total number of supported events for all notifications.
notification_type_t cc_notification_get_type | ( | uint8_t | index | ) |
Returns the notification type from the given index.
[in] | index | Index in the notification array. |
bool cc_notification_is_type_supported | ( | notification_type_t | type | ) |
Returns whether a notification exists in the notification array based on a given notification type.
This function is used to check whether incoming CC Notification commands must be discarded or not.
[in] | type | Notification type. |