upm
1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
|
Functions | |
void | acil_encode_cmd_set_test_mode (uint8_t *buffer, aci_cmd_params_test_t *p_aci_cmd_params_test) |
Encode the ACI message for set test mode command. More... | |
void | acil_encode_cmd_sleep (uint8_t *buffer) |
Encode the ACI message for sleep command. More... | |
void | acil_encode_cmd_get_device_version (uint8_t *buffer) |
Encode the ACI message for get device version. More... | |
void | acil_encode_cmd_set_local_data (uint8_t *buffer, aci_cmd_params_set_local_data_t *p_aci_cmd_params_set_local_data, uint8_t data_size) |
Encode the ACI message for set local data. More... | |
void | acil_encode_cmd_connect (uint8_t *buffer, aci_cmd_params_connect_t *p_aci_cmd_params_connect) |
Encode the ACI message to connect. More... | |
void | acil_encode_cmd_bond (uint8_t *buffer, aci_cmd_params_bond_t *p_aci_cmd_params_bond) |
Encode the ACI message to bond. More... | |
void | acil_encode_cmd_disconnect (uint8_t *buffer, aci_cmd_params_disconnect_t *p_aci_cmd_params_disconnect) |
Encode the ACI message to disconnect. More... | |
void | acil_encode_baseband_reset (uint8_t *buffer) |
Encode the ACI message to baseband reset. More... | |
void | acil_encode_direct_connect (uint8_t *buffer) |
Encode the ACI message for Directed Advertising. More... | |
void | acil_encode_cmd_wakeup (uint8_t *buffer) |
Encode the ACI message to wakeup. More... | |
void | acil_encode_cmd_set_radio_tx_power (uint8_t *buffer, aci_cmd_params_set_tx_power_t *p_aci_cmd_params_set_tx_power) |
Encode the ACI message for set radio Tx power. More... | |
void | acil_encode_cmd_get_address (uint8_t *buffer) |
Encode the ACI message for get device address. More... | |
void | acil_encode_cmd_send_data (uint8_t *buffer, aci_cmd_params_send_data_t *p_aci_cmd_params_send_data_t, uint8_t data_size) |
Encode the ACI message for send data. More... | |
void | acil_encode_cmd_request_data (uint8_t *buffer, aci_cmd_params_request_data_t *p_aci_cmd_params_request_data) |
Encode the ACI message for request data. More... | |
void | acil_encode_cmd_open_remote_pipe (uint8_t *buffer, aci_cmd_params_open_remote_pipe_t *p_aci_cmd_params_open_remote_pipe) |
Encode the ACI message for open remote pipe. More... | |
void | acil_encode_cmd_close_remote_pipe (uint8_t *buffer, aci_cmd_params_close_remote_pipe_t *p_aci_cmd_params_close_remote_pipe) |
Encode the ACI message for close remote pipe. More... | |
void | acil_encode_cmd_echo_msg (uint8_t *buffer, aci_cmd_params_echo_t *p_cmd_params_echo, uint8_t msg_size) |
Encode the ACI message for echo message. More... | |
void | acil_encode_cmd_battery_level (uint8_t *buffer) |
Encode the ACI message to battery level. More... | |
void | acil_encode_cmd_temparature (uint8_t *buffer) |
Encode the ACI message to temparature. More... | |
void | acil_encode_cmd_read_dynamic_data (uint8_t *buffer) |
Encode the ACI message to read dynamic data. More... | |
void | acil_encode_cmd_write_dynamic_data (uint8_t *buffer, uint8_t seq_no, uint8_t *dynamic_data, uint8_t dynamic_data_size) |
Encode the ACI message for write dynamic data. More... | |
void | acil_encode_cmd_change_timing_req (uint8_t *buffer, aci_cmd_params_change_timing_t *p_aci_cmd_params_change_timing) |
Encode the ACI message to change timing request. More... | |
void | acil_encode_cmd_set_app_latency (uint8_t *buffer, aci_cmd_params_set_app_latency_t *p_aci_cmd_params_set_app_latency) |
Encode the ACI message to set the application latency. More... | |
void | acil_encode_cmd_change_timing_req_GAP_PPCP (uint8_t *buffer) |
Encode the ACI message to change timing request using the timing parameters from GAP PPCP. More... | |
void | acil_encode_cmd_setup (uint8_t *buffer, aci_cmd_params_setup_t *p_aci_cmd_params_setup, uint8_t setup_data_size) |
Encode the ACI message for setup. More... | |
void | acil_encode_cmd_dtm_cmd (uint8_t *buffer, aci_cmd_params_dtm_cmd_t *p_aci_cmd_params_dtm_cmd) |
Encode the ACI message for DTM command. More... | |
void | acil_encode_cmd_send_data_ack (uint8_t *buffer, const uint8_t pipe_number) |
Encode the ACI message to send data acknowledgement. More... | |
void | acil_encode_cmd_send_data_nack (uint8_t *buffer, const uint8_t pipe_number, const uint8_t err_code) |
Encode the ACI message to send negative acknowledgement. More... | |
void | acil_encode_cmd_bond_security_request (uint8_t *buffer) |
Encode the ACI message for Bond Security Request command. More... | |
void | acil_encode_cmd_broadcast (uint8_t *buffer, aci_cmd_params_broadcast_t *p_aci_cmd_params_broadcast) |
Encode the ACI message for Broadcast command. More... | |
void | acil_encode_cmd_open_adv_pipes (uint8_t *buffer, aci_cmd_params_open_adv_pipe_t *p_aci_cmd_params_open_adv_pipe) |
Encode the ACI message for Open Adv Pipes. More... | |
void | acil_encode_cmd_set_key (uint8_t *buffer, aci_cmd_params_set_key_t *p_aci_cmd_params_set_key) |
Encode the ACI message for Set Key Request command. More... | |
bool | acil_encode_cmd (uint8_t *buffer, aci_cmd_t *p_aci_cmd) |
Encode the ACI message. More... | |
void | acil_decode_evt_command_response (uint8_t *buffer_in, aci_evt_params_cmd_rsp_t *p_evt_params_cmd_rsp) |
Decode the ACI event command response. More... | |
void | acil_decode_evt_device_started (uint8_t *buffer_in, aci_evt_params_device_started_t *p_evt_params_device_started) |
Decode the ACI event device started. More... | |
void | acil_decode_evt_pipe_status (uint8_t *buffer_in, aci_evt_params_pipe_status_t *p_aci_evt_params_pipe_status) |
Decode the ACI event pipe status. More... | |
void | acil_decode_evt_disconnected (uint8_t *buffer_in, aci_evt_params_disconnected_t *p_aci_evt_params_disconnected) |
Decode the ACI event for disconnected. More... | |
void | acil_decode_evt_bond_status (uint8_t *buffer_in, aci_evt_params_bond_status_t *p_aci_evt_params_bond_status) |
Decode the ACI event for bond status. More... | |
uint8_t | acil_decode_evt_data_received (uint8_t *buffer_in, aci_evt_params_data_received_t *p_evt_params_data_received) |
Decode the ACI event for data received. More... | |
void | acil_decode_evt_data_ack (uint8_t *buffer_in, aci_evt_params_data_ack_t *p_evt_params_data_ack) |
Decode the ACI event data acknowledgement. More... | |
uint8_t | acil_decode_evt_hw_error (uint8_t *buffer_in, aci_evt_params_hw_error_t *p_aci_evt_params_hw_error) |
Decode the ACI event for hardware error. More... | |
void | acil_decode_evt_credit (uint8_t *buffer_in, aci_evt_params_data_credit_t *p_evt_params_data_credit) |
Decode the ACI event data credit. More... | |
void | acil_decode_evt_connected (uint8_t *buffer_in, aci_evt_params_connected_t *p_aci_evt_params_connected) |
Decode the ACI event for connected. More... | |
void | acil_decode_evt_timing (uint8_t *buffer_in, aci_evt_params_timing_t *p_evt_params_timing) |
Decode the ACI event for timing. More... | |
void | acil_decode_evt_pipe_error (uint8_t *buffer_in, aci_evt_params_pipe_error_t *p_evt_params_pipe_error) |
Decode the ACI event for pipe error. More... | |
void | acil_decode_evt_key_request (uint8_t *buffer_in, aci_evt_params_key_request_t *p_evt_params_key_request) |
Decode the ACI event for key request. More... | |
uint8_t | acil_decode_evt_echo (uint8_t *buffer_in, aci_evt_params_echo_t *aci_evt_params_echo) |
Decode the ACI event for echo. More... | |
void | acil_decode_evt_display_passkey (uint8_t *buffer_in, aci_evt_params_display_passkey_t *p_aci_evt_params_display_passkey) |
Decode the Display Key Event. More... | |
bool | acil_decode_evt (uint8_t *buffer_in, aci_evt_t *p_aci_evt) |
Decode the ACI event. More... | |
void acil_encode_cmd_set_test_mode | ( | uint8_t * | buffer, |
aci_cmd_params_test_t * | p_aci_cmd_params_test | ||
) |
[in,out] | buffer | Pointer to ACI message buffer |
[in] | test_mode | Pointer to the test mode in ::aci_cmd_params_test_t |
void acil_encode_cmd_sleep | ( | uint8_t * | buffer | ) |
[in,out] | buffer | Pointer to ACI message buffer |
void acil_encode_cmd_get_device_version | ( | uint8_t * | buffer | ) |
[in,out] | buffer | Pointer to ACI message buffer |
void acil_encode_cmd_set_local_data | ( | uint8_t * | buffer, |
aci_cmd_params_set_local_data_t * | p_aci_cmd_params_set_local_data, | ||
uint8_t | data_size | ||
) |
[in,out] | buffer | Pointer to ACI message buffer |
[in] | p_aci_cmd_params_set_local_data | Pointer to the local data parameters in ::aci_cmd_params_set_local_data_t |
[in] | data_size | Size of data message |
void acil_encode_cmd_connect | ( | uint8_t * | buffer, |
aci_cmd_params_connect_t * | p_aci_cmd_params_connect | ||
) |
[in,out] | buffer | Pointer to ACI message buffer |
[in] | p_aci_cmd_params_connect | Pointer to the run parameters in ::aci_cmd_params_connect_t |
void acil_encode_cmd_bond | ( | uint8_t * | buffer, |
aci_cmd_params_bond_t * | p_aci_cmd_params_bond | ||
) |
[in,out] | buffer | Pointer to ACI message buffer |
[in] | p_aci_cmd_params_bond | Pointer to the run parameters in ::aci_cmd_params_bond_t |
void acil_encode_cmd_disconnect | ( | uint8_t * | buffer, |
aci_cmd_params_disconnect_t * | p_aci_cmd_params_disconnect | ||
) |
[in,out] | buffer | Pointer to ACI message buffer |
[in] | p_aci_cmd_params_disconnect | Pointer to the run parameters in ::aci_cmd_params_disconnect_t |
void acil_encode_baseband_reset | ( | uint8_t * | buffer | ) |
[in,out] | buffer | Pointer to ACI message buffer |
void acil_encode_direct_connect | ( | uint8_t * | buffer | ) |
[in,out] | buffer | Pointer to ACI message buffer |
void acil_encode_cmd_wakeup | ( | uint8_t * | buffer | ) |
[in,out] | buffer | Pointer to ACI message buffer |
void acil_encode_cmd_set_radio_tx_power | ( | uint8_t * | buffer, |
aci_cmd_params_set_tx_power_t * | p_aci_cmd_params_set_tx_power | ||
) |
[in,out] | buffer | Pointer to ACI message buffer |
[in] | p_aci_cmd_params_set_tx_power | Pointer to the set Tx power parameters in ::aci_cmd_params_set_tx_power_t |
void acil_encode_cmd_get_address | ( | uint8_t * | buffer | ) |
[in,out] | buffer | Pointer to ACI message buffer |
void acil_encode_cmd_send_data | ( | uint8_t * | buffer, |
aci_cmd_params_send_data_t * | p_aci_cmd_params_send_data_t, | ||
uint8_t | data_size | ||
) |
[in,out] | buffer | Pointer to ACI message buffer |
[in] | p_aci_cmd_params_send_data_t | Pointer to the data parameters in ::aci_cmd_params_send_data_t |
[in] | data_size | Size of data message |
void acil_encode_cmd_request_data | ( | uint8_t * | buffer, |
aci_cmd_params_request_data_t * | p_aci_cmd_params_request_data | ||
) |
[in,out] | buffer | Pointer to ACI message buffer |
[in] | p_aci_cmd_params_request_data | Pointer to the request data parameters in ::aci_cmd_params_request_data_t |
void acil_encode_cmd_open_remote_pipe | ( | uint8_t * | buffer, |
aci_cmd_params_open_remote_pipe_t * | p_aci_cmd_params_open_remote_pipe | ||
) |
[in,out] | buffer | Pointer to ACI message buffer |
[in] | p_aci_cmd_params_open_remote_pipe | Pointer to the dynamic data parameters in ::aci_cmd_params_open_remote_pipe_t |
void acil_encode_cmd_close_remote_pipe | ( | uint8_t * | buffer, |
aci_cmd_params_close_remote_pipe_t * | p_aci_cmd_params_close_remote_pipe | ||
) |
[in,out] | buffer | Pointer to ACI message buffer |
[in] | p_aci_cmd_params_close_remote_pipe | Pointer to the dynamic data parameters in ::aci_cmd_params_close_remote_pipe_t |
void acil_encode_cmd_echo_msg | ( | uint8_t * | buffer, |
aci_cmd_params_echo_t * | p_cmd_params_echo, | ||
uint8_t | msg_size | ||
) |
[in,out] | buffer | Pointer to ACI message buffer |
[in] | p_cmd_params_echo | Pointer to the dynamic data parameters in ::aci_cmd_params_echo_t |
[in] | msg_size | Size of the message |
void acil_encode_cmd_battery_level | ( | uint8_t * | buffer | ) |
[in,out] | buffer | Pointer to ACI message buffer |
void acil_encode_cmd_temparature | ( | uint8_t * | buffer | ) |
[in,out] | buffer | Pointer to ACI message buffer |
void acil_encode_cmd_read_dynamic_data | ( | uint8_t * | buffer | ) |
[in,out] | buffer | Pointer to ACI message buffer |
void acil_encode_cmd_write_dynamic_data | ( | uint8_t * | buffer, |
uint8_t | seq_no, | ||
uint8_t * | dynamic_data, | ||
uint8_t | dynamic_data_size | ||
) |
[in,out] | buffer | Pointer to ACI message buffer |
[in] | seq_no | Sequence number of the dynamic data (as received in the response to Read Dynamic Data) |
[in] | dynamic_data | Pointer to the dynamic data |
[in] | dynamic_data_size | Size of dynamic data |
void acil_encode_cmd_change_timing_req | ( | uint8_t * | buffer, |
aci_cmd_params_change_timing_t * | p_aci_cmd_params_change_timing | ||
) |
[in,out] | buffer | Pointer to ACI message buffer |
[in] | p_aci_cmd_params_change_timing | Pointer to the change timing parameters in ::aci_cmd_params_change_timing_t |
void acil_encode_cmd_set_app_latency | ( | uint8_t * | buffer, |
aci_cmd_params_set_app_latency_t * | p_aci_cmd_params_set_app_latency | ||
) |
[in,out] | buffer | Pointer to ACI message buffer |
[in] | p_aci_cmd_params_set_app_latency | Pointer to the set_application_latency command parameters in ::aci_cmd_params_dtm_cmd_t |
void acil_encode_cmd_change_timing_req_GAP_PPCP | ( | uint8_t * | buffer | ) |
[in,out] | buffer | Pointer to ACI message buffer |
[in] | p_aci_cmd_params_change_timing | Pointer to the change timing parameters in ::aci_cmd_params_change_timing_t |
void acil_encode_cmd_setup | ( | uint8_t * | buffer, |
aci_cmd_params_setup_t * | p_aci_cmd_params_setup, | ||
uint8_t | setup_data_size | ||
) |
[in,out] | buffer | Pointer to ACI message buffer |
[in] | p_cmd_params_set_run_behaviour | Pointer to the setup data in ::aci_cmd_params_setup_t |
[in] | setup_data_size | Size of setup message |
void acil_encode_cmd_dtm_cmd | ( | uint8_t * | buffer, |
aci_cmd_params_dtm_cmd_t * | p_aci_cmd_params_dtm_cmd | ||
) |
[in,out] | buffer | Pointer to ACI message buffer |
[in] | p_cmd_params_set_run_behaviour | Pointer to the DTM command parameters in ::aci_cmd_params_dtm_cmd_t |
void acil_encode_cmd_send_data_ack | ( | uint8_t * | buffer, |
const uint8_t | pipe_number | ||
) |
[in,out] | buffer | Pointer to ACI message buffer |
[in] | pipe_number | Pipe number for which the ack is to be sent |
void acil_encode_cmd_send_data_nack | ( | uint8_t * | buffer, |
const uint8_t | pipe_number, | ||
const uint8_t | error_code | ||
) |
[in,out] | buffer | Pointer to ACI message buffer |
[in] | pipe_number | Pipe number for which the nack is to be sent |
[in] | error_code | Error code that has to be sent in the NACK |
void acil_encode_cmd_bond_security_request | ( | uint8_t * | buffer | ) |
[in,out] | buffer | Pointer to ACI message buffer |
void acil_encode_cmd_broadcast | ( | uint8_t * | buffer, |
aci_cmd_params_broadcast_t * | p_aci_cmd_params_broadcast | ||
) |
[in,out] | buffer | Pointer to ACI message buffer |
[in] | p_aci_cmd | Pointer to ACI command data in ::aci_cmd_params_broadcast_t |
void acil_encode_cmd_open_adv_pipes | ( | uint8_t * | buffer, |
aci_cmd_params_open_adv_pipe_t * | p_aci_cmd_params_set_adv_svc_data | ||
) |
[in,out] | buffer | Pointer to ACI message buffer |
[in] | p_aci_cmd | Pointer to ACI command data in ::aci_cmd_params_open_adv_pipe_t |
void acil_encode_cmd_set_key | ( | uint8_t * | buffer, |
aci_cmd_params_set_key_t * | p_aci_cmd_params_set_key | ||
) |
[in,out] | buffer | Pointer to ACI message buffer |
bool acil_encode_cmd | ( | uint8_t * | buffer, |
aci_cmd_t * | p_aci_cmd | ||
) |
[in,out] | buffer | Pointer to ACI message buffer |
[in] | p_aci_cmd | Pointer to ACI command data in ::aci_cmd_t |
[in] | bool |
void acil_decode_evt_command_response | ( | uint8_t * | buffer_in, |
aci_evt_params_cmd_rsp_t * | p_evt_params_cmd_rsp | ||
) |
[in] | buffer_in | Pointer to message received |
[in,out] | buffer | Pointer to the decoded message in ::aci_evt_params_cmd_rsp_t |
void acil_decode_evt_device_started | ( | uint8_t * | buffer_in, |
aci_evt_params_device_started_t * | p_evt_params_device_started | ||
) |
[in] | buffer_in | Pointer to message received |
[in,out] | p_aci_evt | Pointer to the decoded message in ::aci_evt_params_device_started_t |
void acil_decode_evt_pipe_status | ( | uint8_t * | buffer_in, |
aci_evt_params_pipe_status_t * | p_aci_evt_params_pipe_status | ||
) |
[in] | buffer_in | Pointer to message received |
[in,out] | p_aci_evt_params_pipe_status | Pointer to the decoded message in ::aci_evt_params_pipe_status_t |
void acil_decode_evt_disconnected | ( | uint8_t * | buffer_in, |
aci_evt_params_disconnected_t * | p_aci_evt_params_disconnected | ||
) |
[in] | buffer_in | Pointer to message received |
[in,out] | p_aci_evt_params_disconnected | Pointer to the decoded message in ::aci_evt_params_disconnected_t |
void acil_decode_evt_bond_status | ( | uint8_t * | buffer_in, |
aci_evt_params_bond_status_t * | p_aci_evt_params_bond_status | ||
) |
[in] | buffer_in | Pointer to message received |
[in,out] | p_aci_evt_params_bond_status | Pointer to the decoded message in ::aci_evt_params_bond_status_t |
uint8_t acil_decode_evt_data_received | ( | uint8_t * | buffer_in, |
aci_evt_params_data_received_t * | p_evt_params_data_received | ||
) |
[in] | buffer_in | Pointer to message received |
[in,out] | p_evt_params_data_received | Pointer to the decoded message in ::aci_evt_params_data_received_t |
void acil_decode_evt_data_ack | ( | uint8_t * | buffer_in, |
aci_evt_params_data_ack_t * | p_evt_params_data_ack | ||
) |
[in] | buffer_in | Pointer to message received |
[in,out] | p_evt_params_data_ack | Pointer to the decoded message in ::aci_evt_params_data_ack_t |
uint8_t acil_decode_evt_hw_error | ( | uint8_t * | buffer_in, |
aci_evt_params_hw_error_t * | p_aci_evt_params_hw_error | ||
) |
[in] | buffer_in | Pointer to message received |
[in,out] | p_aci_evt_params_hw_error | Pointer to the decoded message in ::aci_evt_params_hw_error_t |
void acil_decode_evt_credit | ( | uint8_t * | buffer_in, |
aci_evt_params_data_credit_t * | p_evt_params_data_credit | ||
) |
[in] | buffer_in | Pointer to message received |
[in,out] | p_evt_params_data_credit | Pointer to the decoded message in ::aci_evt_params_data_credit_t |
void acil_decode_evt_connected | ( | uint8_t * | buffer_in, |
aci_evt_params_connected_t * | p_aci_evt_params_connected | ||
) |
[in] | buffer_in | Pointer to message received |
[in,out] | p_aci_evt_params_connected | Pointer to the decoded message in ::aci_evt_params_connected_t |
void acil_decode_evt_timing | ( | uint8_t * | buffer_in, |
aci_evt_params_timing_t * | p_evt_params_timing | ||
) |
[in] | buffer_in | Pointer to message received |
[in,out] | p_evt_params_timing | Pointer to the decoded message in ::aci_evt_params_timing_t |
void acil_decode_evt_pipe_error | ( | uint8_t * | buffer_in, |
aci_evt_params_pipe_error_t * | p_evt_params_pipe_error | ||
) |
[in] | buffer_in | Pointer to message received |
[in,out] | p_evt_params_pipe_error | Pointer to the decoded message in ::aci_evt_params_pipe_error_t |
void acil_decode_evt_key_request | ( | uint8_t * | buffer_in, |
aci_evt_params_key_request_t * | p_evt_params_key_request | ||
) |
[in] | buffer_in | Pointer to message received |
[in,out] | p_evt_params_key_type | Pointer to the decoded message in ::aci_evt_params_key_type_t |
uint8_t acil_decode_evt_echo | ( | uint8_t * | buffer_in, |
aci_evt_params_echo_t * | buffer_out | ||
) |
[in] | buffer_in | Pointer to message received |
[in,out] | buffer_out | Pointer to the echo message (max size of buffer ACI_ECHO_DATA_MAX_LEN) |
void acil_decode_evt_display_passkey | ( | uint8_t * | buffer_in, |
aci_evt_params_display_passkey_t * | p_aci_evt_params_display_passkey | ||
) |
[in] | buffer_in | Pointer to message received |
[in,out] | p_aci_evt | Pointer to the decoded message in ::aci_evt_params_display_passkey_t |
bool acil_decode_evt | ( | uint8_t * | buffer_in, |
aci_evt_t * | p_aci_evt | ||
) |
[in] | buffer_in | Pointer to message received |
[in,out] | p_aci_evt | Pointer to the decoded message in ::aci_evt_t |