upm  1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
Functions

Go to the source code of this file.

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_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_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_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_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 error_code)
 Encode the ACI message to send negative acknowledgement. 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_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_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...
 
void acil_encode_cmd_bond_security_request (uint8_t *buffer)
 Encode the ACI message for Bond Security Request command. More...
 
bool acil_encode_cmd (uint8_t *buffer, aci_cmd_t *p_aci_cmd)
 Encode the ACI message. 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_set_adv_svc_data)
 Encode the ACI message for Open Adv Pipes. 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 *buffer_out)
 Decode the ACI event for echo. More...
 
bool acil_decode_evt (uint8_t *buffer_in, aci_evt_t *p_aci_evt)
 Decode the ACI event. 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...
 

Function Documentation

void acil_encode_cmd_set_test_mode ( uint8_t *  buffer,
aci_cmd_params_test_t *  p_aci_cmd_params_test 
)
Parameters
[in,out]bufferPointer to ACI message buffer
[in]test_modePointer to the test mode in ::aci_cmd_params_test_t
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_sleep ( uint8_t *  buffer)
Parameters
[in,out]bufferPointer to ACI message buffer
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_get_device_version ( uint8_t *  buffer)
Parameters
[in,out]bufferPointer to ACI message buffer
Returns
None

Here is the caller graph for this function:

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 
)
Parameters
[in,out]bufferPointer to ACI message buffer
[in]p_aci_cmd_params_set_local_dataPointer to the local data parameters in ::aci_cmd_params_set_local_data_t
[in]data_sizeSize of data message
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_connect ( uint8_t *  buffer,
aci_cmd_params_connect_t *  p_aci_cmd_params_connect 
)
Parameters
[in,out]bufferPointer to ACI message buffer
[in]p_aci_cmd_params_connectPointer to the run parameters in ::aci_cmd_params_connect_t
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_bond ( uint8_t *  buffer,
aci_cmd_params_bond_t *  p_aci_cmd_params_bond 
)
Parameters
[in,out]bufferPointer to ACI message buffer
[in]p_aci_cmd_params_bondPointer to the run parameters in ::aci_cmd_params_bond_t
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_disconnect ( uint8_t *  buffer,
aci_cmd_params_disconnect_t *  p_aci_cmd_params_disconnect 
)
Parameters
[in,out]bufferPointer to ACI message buffer
[in]p_aci_cmd_params_disconnectPointer to the run parameters in ::aci_cmd_params_disconnect_t
Returns
None

Here is the caller graph for this function:

void acil_encode_baseband_reset ( uint8_t *  buffer)
Parameters
[in,out]bufferPointer to ACI message buffer
Returns
None

Here is the caller graph for this function:

void acil_encode_direct_connect ( uint8_t *  buffer)
Parameters
[in,out]bufferPointer to ACI message buffer
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_wakeup ( uint8_t *  buffer)
Parameters
[in,out]bufferPointer to ACI message buffer
Returns
None

Here is the caller graph for this function:

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 
)
Parameters
[in,out]bufferPointer to ACI message buffer
[in]p_aci_cmd_params_set_tx_powerPointer to the set Tx power parameters in ::aci_cmd_params_set_tx_power_t
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_get_address ( uint8_t *  buffer)
Parameters
[in,out]bufferPointer to ACI message buffer
Returns
None

Here is the caller graph for this function:

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 
)
Parameters
[in,out]bufferPointer to ACI message buffer
[in]p_aci_cmd_params_send_data_tPointer to the data parameters in ::aci_cmd_params_send_data_t
[in]data_sizeSize of data message
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_request_data ( uint8_t *  buffer,
aci_cmd_params_request_data_t *  p_aci_cmd_params_request_data 
)
Parameters
[in,out]bufferPointer to ACI message buffer
[in]p_aci_cmd_params_request_dataPointer to the request data parameters in ::aci_cmd_params_request_data_t
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_open_remote_pipe ( uint8_t *  buffer,
aci_cmd_params_open_remote_pipe_t *  p_aci_cmd_params_open_remote_pipe 
)
Parameters
[in,out]bufferPointer to ACI message buffer
[in]p_aci_cmd_params_open_remote_pipePointer to the dynamic data parameters in ::aci_cmd_params_open_remote_pipe_t
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_close_remote_pipe ( uint8_t *  buffer,
aci_cmd_params_close_remote_pipe_t *  p_aci_cmd_params_close_remote_pipe 
)
Parameters
[in,out]bufferPointer to ACI message buffer
[in]p_aci_cmd_params_close_remote_pipePointer to the dynamic data parameters in ::aci_cmd_params_close_remote_pipe_t
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_echo_msg ( uint8_t *  buffer,
aci_cmd_params_echo_t *  p_cmd_params_echo,
uint8_t  msg_size 
)
Parameters
[in,out]bufferPointer to ACI message buffer
[in]p_cmd_params_echoPointer to the dynamic data parameters in ::aci_cmd_params_echo_t
[in]msg_sizeSize of the message
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_battery_level ( uint8_t *  buffer)
Parameters
[in,out]bufferPointer to ACI message buffer
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_temparature ( uint8_t *  buffer)
Parameters
[in,out]bufferPointer to ACI message buffer
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_read_dynamic_data ( uint8_t *  buffer)
Parameters
[in,out]bufferPointer to ACI message buffer
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_change_timing_req ( uint8_t *  buffer,
aci_cmd_params_change_timing_t *  p_aci_cmd_params_change_timing 
)
Parameters
[in,out]bufferPointer to ACI message buffer
[in]p_aci_cmd_params_change_timingPointer to the change timing parameters in ::aci_cmd_params_change_timing_t
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_change_timing_req_GAP_PPCP ( uint8_t *  buffer)
Parameters
[in,out]bufferPointer to ACI message buffer
[in]p_aci_cmd_params_change_timingPointer to the change timing parameters in ::aci_cmd_params_change_timing_t
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_write_dynamic_data ( uint8_t *  buffer,
uint8_t  seq_no,
uint8_t *  dynamic_data,
uint8_t  dynamic_data_size 
)
Parameters
[in,out]bufferPointer to ACI message buffer
[in]seq_noSequence number of the dynamic data (as received in the response to Read Dynamic Data)
[in]dynamic_dataPointer to the dynamic data
[in]dynamic_data_sizeSize of dynamic data
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_send_data_ack ( uint8_t *  buffer,
const uint8_t  pipe_number 
)
Parameters
[in,out]bufferPointer to ACI message buffer
[in]pipe_numberPipe number for which the ack is to be sent
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_send_data_nack ( uint8_t *  buffer,
const uint8_t  pipe_number,
const uint8_t  error_code 
)
Parameters
[in,out]bufferPointer to ACI message buffer
[in]pipe_numberPipe number for which the nack is to be sent
[in]error_codeError code that has to be sent in the NACK
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_set_app_latency ( uint8_t *  buffer,
aci_cmd_params_set_app_latency_t *  p_aci_cmd_params_set_app_latency 
)
Parameters
[in,out]bufferPointer to ACI message buffer
[in]p_aci_cmd_params_set_app_latencyPointer to the set_application_latency command parameters in ::aci_cmd_params_dtm_cmd_t
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_setup ( uint8_t *  buffer,
aci_cmd_params_setup_t *  p_aci_cmd_params_setup,
uint8_t  setup_data_size 
)
Parameters
[in,out]bufferPointer to ACI message buffer
[in]p_cmd_params_set_run_behaviourPointer to the setup data in ::aci_cmd_params_setup_t
[in]setup_data_sizeSize of setup message
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_dtm_cmd ( uint8_t *  buffer,
aci_cmd_params_dtm_cmd_t *  p_aci_cmd_params_dtm_cmd 
)
Parameters
[in,out]bufferPointer to ACI message buffer
[in]p_cmd_params_set_run_behaviourPointer to the DTM command parameters in ::aci_cmd_params_dtm_cmd_t
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_set_key ( uint8_t *  buffer,
aci_cmd_params_set_key_t *  p_aci_cmd_params_set_key 
)
Parameters
[in,out]bufferPointer to ACI message buffer
Returns
None

Here is the caller graph for this function:

void acil_encode_cmd_bond_security_request ( uint8_t *  buffer)
Parameters
[in,out]bufferPointer to ACI message buffer
Returns
None

Here is the caller graph for this function:

bool acil_encode_cmd ( uint8_t *  buffer,
aci_cmd_t *  p_aci_cmd 
)
Parameters
[in,out]bufferPointer to ACI message buffer
[in]p_aci_cmdPointer to ACI command data in ::aci_cmd_t
[in]bool
Returns
bool true, if succesful, else returns false

Here is the call graph for this function:

void acil_encode_cmd_broadcast ( uint8_t *  buffer,
aci_cmd_params_broadcast_t *  p_aci_cmd_params_broadcast 
)
Parameters
[in,out]bufferPointer to ACI message buffer
[in]p_aci_cmdPointer to ACI command data in ::aci_cmd_params_broadcast_t
Returns
None

Here is the caller graph for this function:

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 
)
Parameters
[in,out]bufferPointer to ACI message buffer
[in]p_aci_cmdPointer to ACI command data in ::aci_cmd_params_open_adv_pipe_t
Returns
None

Here is the caller graph for this function:

void acil_decode_evt_command_response ( uint8_t *  buffer_in,
aci_evt_params_cmd_rsp_t *  p_evt_params_cmd_rsp 
)
Parameters
[in]buffer_inPointer to message received
[in,out]bufferPointer to the decoded message in ::aci_evt_params_cmd_rsp_t
Returns
None

Here is the caller graph for this function:

void acil_decode_evt_device_started ( uint8_t *  buffer_in,
aci_evt_params_device_started_t *  p_evt_params_device_started 
)
Parameters
[in]buffer_inPointer to message received
[in,out]p_aci_evtPointer to the decoded message in ::aci_evt_params_device_started_t
Returns
None

Here is the caller graph for this function:

void acil_decode_evt_pipe_status ( uint8_t *  buffer_in,
aci_evt_params_pipe_status_t *  p_aci_evt_params_pipe_status 
)
Parameters
[in]buffer_inPointer to message received
[in,out]p_aci_evt_params_pipe_statusPointer to the decoded message in ::aci_evt_params_pipe_status_t
Returns
None

Here is the caller graph for this function:

void acil_decode_evt_disconnected ( uint8_t *  buffer_in,
aci_evt_params_disconnected_t *  p_aci_evt_params_disconnected 
)
Parameters
[in]buffer_inPointer to message received
[in,out]p_aci_evt_params_disconnectedPointer to the decoded message in ::aci_evt_params_disconnected_t
Returns
None

Here is the caller graph for this function:

void acil_decode_evt_bond_status ( uint8_t *  buffer_in,
aci_evt_params_bond_status_t *  p_aci_evt_params_bond_status 
)
Parameters
[in]buffer_inPointer to message received
[in,out]p_aci_evt_params_bond_statusPointer to the decoded message in ::aci_evt_params_bond_status_t
Returns
None

Here is the caller graph for this function:

uint8_t acil_decode_evt_data_received ( uint8_t *  buffer_in,
aci_evt_params_data_received_t *  p_evt_params_data_received 
)
Parameters
[in]buffer_inPointer to message received
[in,out]p_evt_params_data_receivedPointer to the decoded message in ::aci_evt_params_data_received_t
Returns
size Received data size

Here is the caller graph for this function:

void acil_decode_evt_data_ack ( uint8_t *  buffer_in,
aci_evt_params_data_ack_t *  p_evt_params_data_ack 
)
Parameters
[in]buffer_inPointer to message received
[in,out]p_evt_params_data_ackPointer to the decoded message in ::aci_evt_params_data_ack_t
Returns
None

Here is the caller graph for this function:

uint8_t acil_decode_evt_hw_error ( uint8_t *  buffer_in,
aci_evt_params_hw_error_t *  p_aci_evt_params_hw_error 
)
Parameters
[in]buffer_inPointer to message received
[in,out]p_aci_evt_params_hw_errorPointer to the decoded message in ::aci_evt_params_hw_error_t
Returns
size Size of debug information

Here is the caller graph for this function:

void acil_decode_evt_credit ( uint8_t *  buffer_in,
aci_evt_params_data_credit_t *  p_evt_params_data_credit 
)
Parameters
[in]buffer_inPointer to message received
[in,out]p_evt_params_data_creditPointer to the decoded message in ::aci_evt_params_data_credit_t
Returns
None

Here is the caller graph for this function:

void acil_decode_evt_connected ( uint8_t *  buffer_in,
aci_evt_params_connected_t *  p_aci_evt_params_connected 
)
Parameters
[in]buffer_inPointer to message received
[in,out]p_aci_evt_params_connectedPointer to the decoded message in ::aci_evt_params_connected_t
Returns
None

Here is the caller graph for this function:

void acil_decode_evt_timing ( uint8_t *  buffer_in,
aci_evt_params_timing_t *  p_evt_params_timing 
)
Parameters
[in]buffer_inPointer to message received
[in,out]p_evt_params_timingPointer to the decoded message in ::aci_evt_params_timing_t
Returns
None

Here is the caller graph for this function:

void acil_decode_evt_pipe_error ( uint8_t *  buffer_in,
aci_evt_params_pipe_error_t *  p_evt_params_pipe_error 
)
Parameters
[in]buffer_inPointer to message received
[in,out]p_evt_params_pipe_errorPointer to the decoded message in ::aci_evt_params_pipe_error_t

Here is the caller graph for this function:

void acil_decode_evt_key_request ( uint8_t *  buffer_in,
aci_evt_params_key_request_t *  p_evt_params_key_request 
)
Parameters
[in]buffer_inPointer to message received
[in,out]p_evt_params_key_typePointer to the decoded message in ::aci_evt_params_key_type_t
Returns
None

Here is the caller graph for this function:

uint8_t acil_decode_evt_echo ( uint8_t *  buffer_in,
aci_evt_params_echo_t *  buffer_out 
)
Parameters
[in]buffer_inPointer to message received
[in,out]buffer_outPointer to the echo message (max size of buffer ACI_ECHO_DATA_MAX_LEN)
Returns
size Received echo message size
bool acil_decode_evt ( uint8_t *  buffer_in,
aci_evt_t *  p_aci_evt 
)
Parameters
[in]buffer_inPointer to message received
[in,out]p_aci_evtPointer to the decoded message in ::aci_evt_t
Returns
bool true, if succesful, else returns false

Here is the call graph for this function:

void acil_decode_evt_display_passkey ( uint8_t *  buffer_in,
aci_evt_params_display_passkey_t *  p_aci_evt_params_display_passkey 
)
Parameters
[in]buffer_inPointer to message received
[in,out]p_aci_evtPointer to the decoded message in ::aci_evt_params_display_passkey_t
Returns
None

Here is the caller graph for this function: