![]() |
ACU6 Device API
|
BT Service. More...
Data Structures | |
struct | a_ipc_dyn_array_enum_bt_result |
Dynamic-length array of a_ipc_enum_bt_result. More... | |
struct | a_ipc_dyn_array_enum_bt_state |
Dynamic-length array of a_ipc_enum_bt_state. More... | |
struct | a_ipc_msg_bt_request_req |
Request BT service. More... | |
struct | a_ipc_msg_bt_request_rsp |
Request BT service request response. More... | |
struct | a_ipc_msg_bt_release_req_norsp |
Release BT service. More... | |
struct | a_ipc_msg_bt_publish_ind |
BT status publish event. More... | |
struct | a_ipc_msg_bt_subscribe_req |
Subscribe to updates for bt. More... | |
struct | a_ipc_msg_bt_subscribe_rsp |
Sent in response to a_ipc_msg_bt_subscribe_req. More... | |
struct | a_ipc_msg_bt_unsubscribe_req_norsp |
Unsubscribe from updates for bt. More... | |
Enumerations | |
enum | a_ipc_enum_bt_result { A_IPC_ENUM_BT_RESULT_OK , A_IPC_ENUM_BT_RESULT_ERROR } |
BT result codes. More... | |
enum | a_ipc_enum_bt_state { A_IPC_ENUM_BT_STATE_UNKNOWN , A_IPC_ENUM_BT_STATE_STOP , A_IPC_ENUM_BT_STATE_RESET , A_IPC_ENUM_BT_STATE_STARTING , A_IPC_ENUM_BT_STATE_STARTED , A_IPC_ENUM_BT_STATE_ERROR } |
btmgr state More... | |
Functions | |
A_IPC_RESULT | a_ipc_init_bt_request_req (a_ipc_msg *msg) |
Initialize the message buffer to contain a_ipc_msg_bt_request_req. More... | |
A_IPC_RESULT | a_ipc_init_bt_request_rsp (a_ipc_msg *msg) |
Initialize the message buffer to contain a_ipc_msg_bt_request_rsp. More... | |
A_IPC_RESULT | a_ipc_init_bt_release_req_norsp (a_ipc_msg *msg) |
Initialize the message buffer to contain a_ipc_msg_bt_release_req_norsp. More... | |
A_IPC_RESULT | a_ipc_init_bt_publish_ind (a_ipc_msg *msg) |
Initialize the message buffer to contain a_ipc_msg_bt_publish_ind. More... | |
A_IPC_RESULT | a_ipc_init_bt_subscribe_req (a_ipc_msg *msg) |
Initialize the message buffer to contain a_ipc_msg_bt_subscribe_req. More... | |
A_IPC_RESULT | a_ipc_init_bt_subscribe_rsp (a_ipc_msg *msg) |
Initialize the message buffer to contain a_ipc_msg_bt_subscribe_rsp. More... | |
A_IPC_RESULT | a_ipc_init_bt_unsubscribe_req_norsp (a_ipc_msg *msg) |
Initialize the message buffer to contain a_ipc_msg_bt_unsubscribe_req_norsp. More... | |
BT Service.
This page contains documentation of the bluetooth API.
struct a_ipc_dyn_array_enum_bt_result |
Dynamic-length array of a_ipc_enum_bt_result.
Data Fields | ||
---|---|---|
uint32_t | length | Length of the array (number of elements) |
a_ipc_enum_bt_result * | value | The contents of the array. |
struct a_ipc_dyn_array_enum_bt_state |
Dynamic-length array of a_ipc_enum_bt_state.
Data Fields | ||
---|---|---|
uint32_t | length | Length of the array (number of elements) |
a_ipc_enum_bt_state * | value | The contents of the array. |
struct a_ipc_msg_bt_request_req |
Request BT service.
Response is delivered in a_ipc_msg_bt_request_rsp.
Create using a_ipc_init_bt_request_req().
Message type is A_IPC_MSG_BT_REQUEST_REQ.
struct a_ipc_msg_bt_request_rsp |
Request BT service request response.
Sent in response to a_ipc_msg_bt_request_req.
Create using a_ipc_init_bt_request_rsp().
Message type is A_IPC_MSG_BT_REQUEST_RSP.
Data Fields | ||
---|---|---|
a_ipc_enum_bt_result | result | Result of the operation. |
struct a_ipc_msg_bt_release_req_norsp |
Release BT service.
Create using a_ipc_init_bt_release_req_norsp().
Message type is A_IPC_MSG_BT_RELEASE_REQ_NORSP.
struct a_ipc_msg_bt_publish_ind |
BT status publish event.
This status message is sent periodically.
Subscribe using a_ipc_msg_bt_subscribe_req and unsubscribe using a_ipc_msg_bt_unsubscribe_req_norsp.
Create using a_ipc_init_bt_publish_ind().
Message type is A_IPC_MSG_BT_PUBLISH_IND.
Data Fields | ||
---|---|---|
a_ipc_enum_bt_state | state | Current state of the service. |
struct a_ipc_msg_bt_subscribe_req |
Subscribe to updates for bt.
a_ipc_msg_bt_publish_ind will be received until a_ipc_msg_bt_unsubscribe_req_norsp is sent.
Response is delivered in a_ipc_msg_bt_subscribe_rsp.
Create using a_ipc_init_bt_subscribe_req().
Message type is A_IPC_MSG_BT_SUBSCRIBE_REQ.
struct a_ipc_msg_bt_subscribe_rsp |
Sent in response to a_ipc_msg_bt_subscribe_req.
Create using a_ipc_init_bt_subscribe_rsp().
Message type is A_IPC_MSG_BT_SUBSCRIBE_RSP.
Data Fields | ||
---|---|---|
a_ipc_enum_ipc_subscribe_result | result | The result of the subscription request. |
struct a_ipc_msg_bt_unsubscribe_req_norsp |
Unsubscribe from updates for bt.
a_ipc_msg_bt_publish_ind will no longer be received.
Create using a_ipc_init_bt_unsubscribe_req_norsp().
Message type is A_IPC_MSG_BT_UNSUBSCRIBE_REQ_NORSP.
enum a_ipc_enum_bt_result |
enum a_ipc_enum_bt_state |
btmgr state
A_IPC_RESULT a_ipc_init_bt_publish_ind | ( | a_ipc_msg * | msg | ) |
Initialize the message buffer to contain a_ipc_msg_bt_publish_ind.
msg->info.type
will be A_IPC_MSG_BT_PUBLISH_IND.
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_bt_release_req_norsp | ( | a_ipc_msg * | msg | ) |
Initialize the message buffer to contain a_ipc_msg_bt_release_req_norsp.
msg->info.type
will be A_IPC_MSG_BT_RELEASE_REQ_NORSP.
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_bt_request_req | ( | a_ipc_msg * | msg | ) |
Initialize the message buffer to contain a_ipc_msg_bt_request_req.
msg->info.type
will be A_IPC_MSG_BT_REQUEST_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_bt_request_rsp | ( | a_ipc_msg * | msg | ) |
Initialize the message buffer to contain a_ipc_msg_bt_request_rsp.
msg->info.type
will be A_IPC_MSG_BT_REQUEST_RSP.
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_bt_subscribe_req | ( | a_ipc_msg * | msg | ) |
Initialize the message buffer to contain a_ipc_msg_bt_subscribe_req.
msg->info.type
will be A_IPC_MSG_BT_SUBSCRIBE_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_bt_subscribe_rsp | ( | a_ipc_msg * | msg | ) |
Initialize the message buffer to contain a_ipc_msg_bt_subscribe_rsp.
msg->info.type
will be A_IPC_MSG_BT_SUBSCRIBE_RSP.
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_bt_unsubscribe_req_norsp | ( | a_ipc_msg * | msg | ) |
Initialize the message buffer to contain a_ipc_msg_bt_unsubscribe_req_norsp.
msg->info.type
will be A_IPC_MSG_BT_UNSUBSCRIBE_REQ_NORSP.
This function can be called on an already initialized message to change its type.
msg | The message buffer to initialize |
a_ipc_enum_bt_result a_ipc_msg_bt_request_rsp::result |
Result of the operation.
a_ipc_enum_ipc_subscribe_result a_ipc_msg_bt_subscribe_rsp::result |
The result of the subscription request.
a_ipc_enum_bt_state a_ipc_msg_bt_publish_ind::state |
Current state of the service.