Get Supported Events (0x0C,0x2A)

Description

Lists the available trigger or action types.

Notes

There are a limited number of trigger and action slots available in the device. Up to M triggers and N actions can be configured at once in slots 1..M and 1..N respectively. M and N are identified by the max_instances field in the response with the appropriate query selector.

Each slot can be configured as one of a variety of different types of triggers or actions. The supported types are enumerated in the response to this command. Additionally, there is a limit on the number of a given type. In other words, while the device may support M triggers in total, only a few of them maybe usable as a given type. This limit helps optimize device resources. The limit is identified in the count field.

All of the information in this command is available in the user manual. This command provides a programmatic method for obtaining the information.

Parameter Name Data Type Description
Field Length u8 3
Descriptor u8 0x2A
Query u8 enum What type of information to retrieve.
NameValueDescription
TRIGGER_TYPES1Query the supported trigger types and max count for each.
ACTION_TYPES2Query the supported action types and max count for each.
Ack/Nack Reply See standard MIP ack/nack reply format.
Response Data Data Type Description
Response Length u8 Unavailable
Response Descriptor u8 0xB4
Query u8 enum Query type specified in the command.
NameValueDescription
TRIGGER_TYPES1Query the supported trigger types and max count for each.
ACTION_TYPES2Query the supported action types and max count for each.
Max Instances u8 Number of slots available. The 'instance' number for the configuration or control commands must be between 1 and this value.
Num Entries u8 Number of supported types.
Entries Info[num_entries] List of supported types.

Structures

Info

Description

Parameter Name Data Type Description
Type u8 Trigger or action type, as defined in the respective setup command.
Count u8 This is the maximum number of instances supported for this type.