![]() |
ACU6 Device API
|
LED Service. More...
Data Structures | |
struct | a_ipc_dyn_array_enum_led_result |
Dynamic-length array of a_ipc_enum_led_result. More... | |
struct | a_ipc_dyn_array_enum_led_pin_type |
Dynamic-length array of a_ipc_enum_led_pin_type. More... | |
struct | a_ipc_msg_led_set_req |
Message used to request a pin to be enabled or disabled. More... | |
struct | a_ipc_msg_led_set_rsp |
Led configure result. More... | |
Enumerations | |
enum | a_ipc_enum_led_result { A_IPC_ENUM_LED_RESULT_OK , A_IPC_ENUM_LED_RESULT_ERROR_INVALID_PARAMETER , A_IPC_ENUM_LED_RESULT_ERROR_UNKNOWN } |
Result codes. More... | |
enum | a_ipc_enum_led_pin_type { A_IPC_ENUM_LED_PIN_TYPE_GREEN , A_IPC_ENUM_LED_PIN_TYPE_RED , A_IPC_ENUM_LED_PIN_TYPE_BLUE , A_IPC_ENUM_LED_PIN_TYPE_NUMBER_OF_LEDS } |
LED pin type. More... | |
Functions | |
A_IPC_RESULT | a_ipc_init_led_set_req (a_ipc_msg *msg) |
Initialize the message buffer to contain a_ipc_msg_led_set_req. More... | |
A_IPC_RESULT | a_ipc_init_led_set_rsp (a_ipc_msg *msg) |
Initialize the message buffer to contain a_ipc_msg_led_set_rsp. More... | |
LED Service.
This page contains documentation of the System Service API.
struct a_ipc_dyn_array_enum_led_result |
Dynamic-length array of a_ipc_enum_led_result.
Data Fields | ||
---|---|---|
uint32_t | length | Length of the array (number of elements) |
a_ipc_enum_led_result * | value | The contents of the array. |
struct a_ipc_dyn_array_enum_led_pin_type |
Dynamic-length array of a_ipc_enum_led_pin_type.
Data Fields | ||
---|---|---|
uint32_t | length | Length of the array (number of elements) |
a_ipc_enum_led_pin_type * | value | The contents of the array. |
struct a_ipc_msg_led_set_req |
Message used to request a pin to be enabled or disabled.
Response is delivered in a_ipc_msg_led_set_rsp.
Create using a_ipc_init_led_set_req().
Message type is A_IPC_MSG_LED_SET_REQ.
Data Fields | ||
---|---|---|
a_ipc_enum_led_pin_type | pin | Type of pin to set. |
uint8_t | value | 0: Disable, 1: Enable |
struct a_ipc_msg_led_set_rsp |
Led configure result.
Sent in response to a_ipc_msg_led_set_req.
Create using a_ipc_init_led_set_rsp().
Message type is A_IPC_MSG_LED_SET_RSP.
Data Fields | ||
---|---|---|
a_ipc_enum_led_result | result | Result of the operation. |
A_IPC_RESULT a_ipc_init_led_set_req | ( | a_ipc_msg * | msg | ) |
Initialize the message buffer to contain a_ipc_msg_led_set_req.
msg->info.type
will be A_IPC_MSG_LED_SET_REQ.
This function can be called on an already initialized message to change its type.
msg | The message buffer to initialize |
A_IPC_RESULT a_ipc_init_led_set_rsp | ( | a_ipc_msg * | msg | ) |
Initialize the message buffer to contain a_ipc_msg_led_set_rsp.
msg->info.type
will be A_IPC_MSG_LED_SET_RSP.
This function can be called on an already initialized message to change its type.
msg | The message buffer to initialize |
a_ipc_enum_led_pin_type a_ipc_msg_led_set_req::pin |
Type of pin to set.
a_ipc_enum_led_result a_ipc_msg_led_set_rsp::result |
Result of the operation.
uint8_t a_ipc_msg_led_set_req::value |
0: Disable, 1: Enable