added debugging

Fork of BLE_nRF8001 by RedBearLab

Embed: (wiki syntax)

« Back to documentation index

acilib.cpp File Reference

acilib.cpp File Reference

Implementation of the acilib module. More...

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.
void acil_encode_cmd_sleep (uint8_t *buffer)
 Encode the ACI message for sleep command.
void acil_encode_cmd_get_device_version (uint8_t *buffer)
 Encode the ACI message for get device version.
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.
void acil_encode_cmd_connect (uint8_t *buffer, aci_cmd_params_connect_t *p_aci_cmd_params_connect)
 Encode the ACI message to connect.
void acil_encode_cmd_bond (uint8_t *buffer, aci_cmd_params_bond_t *p_aci_cmd_params_bond)
 Encode the ACI message to bond.
void acil_encode_cmd_disconnect (uint8_t *buffer, aci_cmd_params_disconnect_t *p_aci_cmd_params_disconnect)
 Encode the ACI message to disconnect.
void acil_encode_baseband_reset (uint8_t *buffer)
 Encode the ACI message to baseband reset.
void acil_encode_direct_connect (uint8_t *buffer)
 Encode the ACI message for Directed Advertising.
void acil_encode_cmd_wakeup (uint8_t *buffer)
 Encode the ACI message to wakeup.
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.
void acil_encode_cmd_get_address (uint8_t *buffer)
 Encode the ACI message for get device address.
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.
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.
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.
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.
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.
void acil_encode_cmd_battery_level (uint8_t *buffer)
 Encode the ACI message to battery level.
void acil_encode_cmd_temparature (uint8_t *buffer)
 Encode the ACI message to temparature.
void acil_encode_cmd_read_dynamic_data (uint8_t *buffer)
 Encode the ACI message to read dynamic data.
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.
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.
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.
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.
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.
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.
void acil_encode_cmd_send_data_ack (uint8_t *buffer, const uint8_t pipe_number)
 Encode the ACI message to send data acknowledgement.
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.
void acil_encode_cmd_bond_security_request (uint8_t *buffer)
 Encode the ACI message for Bond Security Request command.
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.
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.
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.
bool acil_encode_cmd (uint8_t *buffer, aci_cmd_t *p_aci_cmd)
 Encode the ACI message.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
void acil_decode_evt_timing (uint8_t *buffer_in, aci_evt_params_timing_t *p_evt_params_timing)
 Decode the ACI event for timing.
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.
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.
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.
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.
bool acil_decode_evt (uint8_t *buffer_in, aci_evt_t *p_aci_evt)
 Decode the ACI event.

Detailed Description

Implementation of the acilib module.

Definition in file acilib.cpp.


Function Documentation

bool acil_decode_evt ( uint8_t *  buffer_in,
aci_evt_t p_aci_evt 
)

Decode the ACI event.

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

Definition at line 554 of file acilib.cpp.

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.

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

Definition at line 463 of file acilib.cpp.

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.

Parameters:
[in]buffer_inPointer to message received
[in,out]bufferPointer to the decoded message in aci_evt_params_cmd_rsp_t
Returns:
None

Definition at line 384 of file acilib.cpp.

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.

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

Definition at line 500 of file acilib.cpp.

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.

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

Definition at line 495 of file acilib.cpp.

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.

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

Definition at line 481 of file acilib.cpp.

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.

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

Definition at line 473 of file acilib.cpp.

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.

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

Definition at line 444 of file acilib.cpp.

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.

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

Definition at line 457 of file acilib.cpp.

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.

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

Definition at line 544 of file acilib.cpp.

uint8_t acil_decode_evt_echo ( uint8_t *  buffer_in,
aci_evt_params_echo_t *  buffer_out 
)

Decode the ACI event for echo.

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

Definition at line 537 of file acilib.cpp.

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.

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

Definition at line 486 of file acilib.cpp.

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.

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

Definition at line 532 of file acilib.cpp.

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.

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

Definition at line 524 of file acilib.cpp.

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.

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

Definition at line 451 of file acilib.cpp.

void acil_decode_evt_timing ( uint8_t *  buffer_in,
aci_evt_params_timing_t p_evt_params_timing 
)

Decode the ACI event for 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

Definition at line 514 of file acilib.cpp.

void acil_encode_baseband_reset ( uint8_t *  buffer )

Encode the ACI message to baseband reset.

Parameters:
[in,out]bufferPointer to ACI message buffer
Returns:
None

Definition at line 96 of file acilib.cpp.

bool acil_encode_cmd ( uint8_t *  buffer,
aci_cmd_t p_aci_cmd 
)

Encode the ACI message.

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

Definition at line 300 of file acilib.cpp.

void acil_encode_cmd_battery_level ( uint8_t *  buffer )

Encode the ACI message to battery level.

Parameters:
[in,out]bufferPointer to ACI message buffer
Returns:
None

Definition at line 163 of file acilib.cpp.

void acil_encode_cmd_bond ( uint8_t *  buffer,
aci_cmd_params_bond_t *  p_aci_cmd_params_bond 
)

Encode the ACI message to 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

Definition at line 79 of file acilib.cpp.

void acil_encode_cmd_bond_security_request ( uint8_t *  buffer )

Encode the ACI message for Bond Security Request command.

Parameters:
[in,out]bufferPointer to ACI message buffer
Returns:
None

Definition at line 249 of file acilib.cpp.

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.

Parameters:
[in,out]bufferPointer to ACI message buffer
[in]p_aci_cmdPointer to ACI command data in aci_cmd_params_broadcast_t
Returns:
None

Definition at line 255 of file acilib.cpp.

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.

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

Definition at line 189 of file acilib.cpp.

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.

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

Definition at line 212 of file acilib.cpp.

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.

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

Definition at line 149 of file acilib.cpp.

void acil_encode_cmd_connect ( uint8_t *  buffer,
aci_cmd_params_connect_t p_aci_cmd_params_connect 
)

Encode the ACI message to 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

Definition at line 69 of file acilib.cpp.

void acil_encode_cmd_disconnect ( uint8_t *  buffer,
aci_cmd_params_disconnect_t p_aci_cmd_params_disconnect 
)

Encode the ACI message to 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

Definition at line 89 of file acilib.cpp.

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.

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

Definition at line 226 of file acilib.cpp.

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.

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

Definition at line 156 of file acilib.cpp.

void acil_encode_cmd_get_address ( uint8_t *  buffer )

Encode the ACI message for get device address.

Parameters:
[in,out]bufferPointer to ACI message buffer
Returns:
None

Definition at line 121 of file acilib.cpp.

void acil_encode_cmd_get_device_version ( uint8_t *  buffer )

Encode the ACI message for get device version.

Parameters:
[in,out]bufferPointer to ACI message buffer
Returns:
None

Definition at line 55 of file acilib.cpp.

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.

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

Definition at line 265 of file acilib.cpp.

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.

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

Definition at line 142 of file acilib.cpp.

void acil_encode_cmd_read_dynamic_data ( uint8_t *  buffer )

Encode the ACI message to read dynamic data.

Parameters:
[in,out]bufferPointer to ACI message buffer
Returns:
None

Definition at line 175 of file acilib.cpp.

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.

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

Definition at line 135 of file acilib.cpp.

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.

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

Definition at line 127 of file acilib.cpp.

void acil_encode_cmd_send_data_ack ( uint8_t *  buffer,
const uint8_t  pipe_number 
)

Encode the ACI message to send data acknowledgement.

Parameters:
[in,out]bufferPointer to ACI message buffer
[in]pipe_numberPipe number for which the ack is to be sent
Returns:
None

Definition at line 234 of file acilib.cpp.

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.

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

Definition at line 241 of file acilib.cpp.

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.

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

Definition at line 203 of file acilib.cpp.

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.

Parameters:
[in,out]bufferPointer to ACI message buffer
Returns:
None

Definition at line 273 of file acilib.cpp.

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.

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

Definition at line 61 of file acilib.cpp.

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.

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

Definition at line 114 of file acilib.cpp.

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.

Parameters:
[in,out]bufferPointer to ACI message buffer
[in]test_modePointer to the test mode in aci_cmd_params_test_t
Returns:
None

Definition at line 42 of file acilib.cpp.

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.

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

Definition at line 219 of file acilib.cpp.

void acil_encode_cmd_sleep ( uint8_t *  buffer )

Encode the ACI message for sleep command.

Parameters:
[in,out]bufferPointer to ACI message buffer
Returns:
None

Definition at line 49 of file acilib.cpp.

void acil_encode_cmd_temparature ( uint8_t *  buffer )

Encode the ACI message to temparature.

Parameters:
[in,out]bufferPointer to ACI message buffer
Returns:
None

Definition at line 169 of file acilib.cpp.

void acil_encode_cmd_wakeup ( uint8_t *  buffer )

Encode the ACI message to wakeup.

Parameters:
[in,out]bufferPointer to ACI message buffer
Returns:
None

Definition at line 108 of file acilib.cpp.

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.

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

Definition at line 181 of file acilib.cpp.

void acil_encode_direct_connect ( uint8_t *  buffer )

Encode the ACI message for Directed Advertising.

Parameters:
[in,out]bufferPointer to ACI message buffer
Returns:
None

Definition at line 102 of file acilib.cpp.