Lines Matching refs:buffer
42 void acil_encode_cmd_set_test_mode(uint8_t *buffer, aci_cmd_params_test_t *p_aci_cmd_params_test) in acil_encode_cmd_set_test_mode() argument
44 *(buffer + OFFSET_ACI_CMD_T_LEN) = 2; in acil_encode_cmd_set_test_mode()
45 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_TEST; in acil_encode_cmd_set_test_mode()
46 …*(buffer + OFFSET_ACI_CMD_T_TEST + OFFSET_ACI_CMD_PARAMS_TEST_T_TEST_MODE_CHANGE) = p_aci_cmd_para… in acil_encode_cmd_set_test_mode()
49 void acil_encode_cmd_sleep(uint8_t *buffer) in acil_encode_cmd_sleep() argument
51 *(buffer + OFFSET_ACI_CMD_T_LEN) = 1; in acil_encode_cmd_sleep()
52 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_SLEEP; in acil_encode_cmd_sleep()
55 void acil_encode_cmd_get_device_version(uint8_t *buffer) in acil_encode_cmd_get_device_version() argument
57 *(buffer + OFFSET_ACI_CMD_T_LEN) = 1; in acil_encode_cmd_get_device_version()
58 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_GET_DEVICE_VERSION; in acil_encode_cmd_get_device_version()
61 void acil_encode_cmd_set_local_data(uint8_t *buffer, aci_cmd_params_set_local_data_t *p_aci_cmd_par… in acil_encode_cmd_set_local_data() argument
63 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_SET_LOCAL_DATA_BASE_LEN + data_size; in acil_encode_cmd_set_local_data()
64 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_SET_LOCAL_DATA; in acil_encode_cmd_set_local_data()
65 …*(buffer + OFFSET_ACI_CMD_T_SET_LOCAL_DATA + OFFSET_ACI_CMD_PARAMS_SEND_DATA_T_TX_DATA + OFFSET_AC… in acil_encode_cmd_set_local_data()
66 …memcpy(buffer + OFFSET_ACI_CMD_T_SET_LOCAL_DATA + OFFSET_ACI_CMD_PARAMS_SEND_DATA_T_TX_DATA + OFFS… in acil_encode_cmd_set_local_data()
69 void acil_encode_cmd_connect(uint8_t *buffer, aci_cmd_params_connect_t *p_aci_cmd_params_connect) in acil_encode_cmd_connect() argument
71 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_CONNECT_LEN; in acil_encode_cmd_connect()
72 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_CONNECT; in acil_encode_cmd_connect()
73 …*(buffer + OFFSET_ACI_CMD_T_CONNECT + OFFSET_ACI_CMD_PARAMS_CONNECT_T_TIMEOUT_MSB) = (uint8_t)(p_a… in acil_encode_cmd_connect()
74 …*(buffer + OFFSET_ACI_CMD_T_CONNECT + OFFSET_ACI_CMD_PARAMS_CONNECT_T_TIMEOUT_LSB) = (uint8_t)(p_a… in acil_encode_cmd_connect()
75 …*(buffer + OFFSET_ACI_CMD_T_CONNECT + OFFSET_ACI_CMD_PARAMS_CONNECT_T_ADV_INTERVAL_MSB) = (uint8_t… in acil_encode_cmd_connect()
76 …*(buffer + OFFSET_ACI_CMD_T_CONNECT + OFFSET_ACI_CMD_PARAMS_CONNECT_T_ADV_INTERVAL_LSB) = (uint8_t… in acil_encode_cmd_connect()
79 void acil_encode_cmd_bond(uint8_t *buffer, aci_cmd_params_bond_t *p_aci_cmd_params_bond) in acil_encode_cmd_bond() argument
81 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_BOND_LEN; in acil_encode_cmd_bond()
82 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_BOND; in acil_encode_cmd_bond()
83 …*(buffer + OFFSET_ACI_CMD_T_BOND + OFFSET_ACI_CMD_PARAMS_BOND_T_TIMEOUT_MSB) = (uint8_t)(p_aci_cmd… in acil_encode_cmd_bond()
84 …*(buffer + OFFSET_ACI_CMD_T_BOND + OFFSET_ACI_CMD_PARAMS_BOND_T_TIMEOUT_LSB) = (uint8_t)(p_aci_cmd… in acil_encode_cmd_bond()
85 …*(buffer + OFFSET_ACI_CMD_T_BOND + OFFSET_ACI_CMD_PARAMS_BOND_T_ADV_INTERVAL_MSB) = (uint8_t)(p_ac… in acil_encode_cmd_bond()
86 …*(buffer + OFFSET_ACI_CMD_T_BOND + OFFSET_ACI_CMD_PARAMS_BOND_T_ADV_INTERVAL_LSB) = (uint8_t)(p_ac… in acil_encode_cmd_bond()
89 void acil_encode_cmd_disconnect(uint8_t *buffer, aci_cmd_params_disconnect_t *p_aci_cmd_params_disc… in acil_encode_cmd_disconnect() argument
91 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_DISCONNECT_LEN; in acil_encode_cmd_disconnect()
92 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_DISCONNECT; in acil_encode_cmd_disconnect()
93 …*(buffer + OFFSET_ACI_CMD_T_DISCONNECT + OFFSET_ACI_CMD_PARAMS_DISCONNECT_T_REASON) = (uint8_t)(p_… in acil_encode_cmd_disconnect()
96 void acil_encode_baseband_reset(uint8_t *buffer) in acil_encode_baseband_reset() argument
98 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_BASEBAND_RESET_LEN; in acil_encode_baseband_reset()
99 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_RADIO_RESET; in acil_encode_baseband_reset()
102 void acil_encode_direct_connect(uint8_t *buffer) in acil_encode_direct_connect() argument
104 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_DIRECT_CONNECT_LEN; in acil_encode_direct_connect()
105 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_CONNECT_DIRECT; in acil_encode_direct_connect()
108 void acil_encode_cmd_wakeup(uint8_t *buffer) in acil_encode_cmd_wakeup() argument
110 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_WAKEUP_LEN; in acil_encode_cmd_wakeup()
111 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_WAKEUP; in acil_encode_cmd_wakeup()
114 void acil_encode_cmd_set_radio_tx_power(uint8_t *buffer, aci_cmd_params_set_tx_power_t *p_aci_cmd_p… in acil_encode_cmd_set_radio_tx_power() argument
116 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_SET_RADIO_TX_POWER_LEN; in acil_encode_cmd_set_radio_tx_power()
117 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_SET_TX_POWER; in acil_encode_cmd_set_radio_tx_power()
118 …*(buffer + OFFSET_ACI_CMD_T_SET_TX_POWER + OFFSET_ACI_CMD_PARAMS_SET_TX_POWER_T_DEVICE_POWER) = (u… in acil_encode_cmd_set_radio_tx_power()
121 void acil_encode_cmd_get_address(uint8_t *buffer) in acil_encode_cmd_get_address() argument
123 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_GET_DEVICE_ADDR_LEN; in acil_encode_cmd_get_address()
124 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_GET_DEVICE_ADDRESS; in acil_encode_cmd_get_address()
127 void acil_encode_cmd_send_data(uint8_t *buffer, aci_cmd_params_send_data_t *p_aci_cmd_params_send_d… in acil_encode_cmd_send_data() argument
129 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_SEND_DATA_BASE_LEN + data_size; in acil_encode_cmd_send_data()
130 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_SEND_DATA; in acil_encode_cmd_send_data()
131 …*(buffer + OFFSET_ACI_CMD_T_SEND_DATA + OFFSET_ACI_CMD_PARAMS_SEND_DATA_T_TX_DATA + OFFSET_ACI_TX_… in acil_encode_cmd_send_data()
132 …memcpy((buffer + OFFSET_ACI_CMD_T_SEND_DATA + OFFSET_ACI_CMD_PARAMS_SEND_DATA_T_TX_DATA + OFFSET_A… in acil_encode_cmd_send_data()
135 void acil_encode_cmd_request_data(uint8_t *buffer, aci_cmd_params_request_data_t *p_aci_cmd_params_… in acil_encode_cmd_request_data() argument
137 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_DATA_REQUEST_LEN; in acil_encode_cmd_request_data()
138 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_REQUEST_DATA; in acil_encode_cmd_request_data()
139 …*(buffer + OFFSET_ACI_CMD_T_REQUEST_DATA + OFFSET_ACI_CMD_PARAMS_REQUEST_DATA_T_PIPE_NUMBER) = p_a… in acil_encode_cmd_request_data()
142 void acil_encode_cmd_open_remote_pipe(uint8_t *buffer, aci_cmd_params_open_remote_pipe_t *p_aci_cmd… in acil_encode_cmd_open_remote_pipe() argument
144 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_OPEN_REMOTE_PIPE_LEN; in acil_encode_cmd_open_remote_pipe()
145 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_OPEN_REMOTE_PIPE; in acil_encode_cmd_open_remote_pipe()
146 …*(buffer + OFFSET_ACI_CMD_T_OPEN_REMOTE_PIPE + OFFSET_ACI_CMD_PARAMS_OPEN_REMOTE_PIPE_T_PIPE_NUMBE… in acil_encode_cmd_open_remote_pipe()
149 void acil_encode_cmd_close_remote_pipe(uint8_t *buffer, aci_cmd_params_close_remote_pipe_t *p_aci_c… in acil_encode_cmd_close_remote_pipe() argument
151 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_CLOSE_REMOTE_PIPE_LEN; in acil_encode_cmd_close_remote_pipe()
152 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_CLOSE_REMOTE_PIPE; in acil_encode_cmd_close_remote_pipe()
153 …*(buffer + OFFSET_ACI_CMD_T_CLOSE_REMOTE_PIPE + OFFSET_ACI_CMD_PARAMS_CLOSE_REMOTE_PIPE_T_PIPE_NUM… in acil_encode_cmd_close_remote_pipe()
156 void acil_encode_cmd_echo_msg(uint8_t *buffer, aci_cmd_params_echo_t *p_cmd_params_echo, uint8_t ms… in acil_encode_cmd_echo_msg() argument
158 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_ECHO_MSG_CMD_BASE_LEN + msg_size; in acil_encode_cmd_echo_msg()
159 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_ECHO; in acil_encode_cmd_echo_msg()
160 …memcpy((buffer + OFFSET_ACI_CMD_T_ECHO + OFFSET_ACI_CMD_PARAMS_ECHO_T_ECHO_DATA), &(p_cmd_params_e… in acil_encode_cmd_echo_msg()
163 void acil_encode_cmd_battery_level(uint8_t *buffer) in acil_encode_cmd_battery_level() argument
165 *(buffer + OFFSET_ACI_CMD_T_LEN) = 1; in acil_encode_cmd_battery_level()
166 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_GET_BATTERY_LEVEL; in acil_encode_cmd_battery_level()
169 void acil_encode_cmd_temparature(uint8_t *buffer) in acil_encode_cmd_temparature() argument
171 *(buffer + OFFSET_ACI_CMD_T_LEN) = 1; in acil_encode_cmd_temparature()
172 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_GET_TEMPERATURE; in acil_encode_cmd_temparature()
175 void acil_encode_cmd_read_dynamic_data(uint8_t *buffer) in acil_encode_cmd_read_dynamic_data() argument
177 *(buffer + OFFSET_ACI_CMD_T_LEN) = 1; in acil_encode_cmd_read_dynamic_data()
178 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_READ_DYNAMIC_DATA; in acil_encode_cmd_read_dynamic_data()
181 void acil_encode_cmd_write_dynamic_data(uint8_t *buffer, uint8_t seq_no, uint8_t* dynamic_data, uin… in acil_encode_cmd_write_dynamic_data() argument
183 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_WRITE_DYNAMIC_DATA_BASE_LEN + dynamic_data_size; in acil_encode_cmd_write_dynamic_data()
184 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_WRITE_DYNAMIC_DATA; in acil_encode_cmd_write_dynamic_data()
185 …*(buffer + OFFSET_ACI_CMD_T_WRITE_DYNAMIC_DATA + OFFSET_ACI_CMD_PARAMS_WRITE_DYNAMIC_DATA_T_SEQ_NO… in acil_encode_cmd_write_dynamic_data()
186 …memcpy((buffer + OFFSET_ACI_CMD_T_WRITE_DYNAMIC_DATA + OFFSET_ACI_CMD_PARAMS_WRITE_DYNAMIC_DATA_T_… in acil_encode_cmd_write_dynamic_data()
189 void acil_encode_cmd_change_timing_req(uint8_t *buffer, aci_cmd_params_change_timing_t *p_aci_cmd_p… in acil_encode_cmd_change_timing_req() argument
191 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_CHANGE_TIMING_LEN; in acil_encode_cmd_change_timing_req()
192 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_CHANGE_TIMING; in acil_encode_cmd_change_timing_req()
193 …*(buffer + OFFSET_ACI_CMD_T_CHANGE_TIMING + OFFSET_ACI_CMD_PARAMS_CHANGE_TIMING_T_CONN_PARAMS + OF… in acil_encode_cmd_change_timing_req()
194 …*(buffer + OFFSET_ACI_CMD_T_CHANGE_TIMING + OFFSET_ACI_CMD_PARAMS_CHANGE_TIMING_T_CONN_PARAMS + OF… in acil_encode_cmd_change_timing_req()
195 …*(buffer + OFFSET_ACI_CMD_T_CHANGE_TIMING + OFFSET_ACI_CMD_PARAMS_CHANGE_TIMING_T_CONN_PARAMS + OF… in acil_encode_cmd_change_timing_req()
196 …*(buffer + OFFSET_ACI_CMD_T_CHANGE_TIMING + OFFSET_ACI_CMD_PARAMS_CHANGE_TIMING_T_CONN_PARAMS + OF… in acil_encode_cmd_change_timing_req()
197 …*(buffer + OFFSET_ACI_CMD_T_CHANGE_TIMING + OFFSET_ACI_CMD_PARAMS_CHANGE_TIMING_T_CONN_PARAMS + OF… in acil_encode_cmd_change_timing_req()
198 …*(buffer + OFFSET_ACI_CMD_T_CHANGE_TIMING + OFFSET_ACI_CMD_PARAMS_CHANGE_TIMING_T_CONN_PARAMS + OF… in acil_encode_cmd_change_timing_req()
199 …*(buffer + OFFSET_ACI_CMD_T_CHANGE_TIMING + OFFSET_ACI_CMD_PARAMS_CHANGE_TIMING_T_CONN_PARAMS + OF… in acil_encode_cmd_change_timing_req()
200 …*(buffer + OFFSET_ACI_CMD_T_CHANGE_TIMING + OFFSET_ACI_CMD_PARAMS_CHANGE_TIMING_T_CONN_PARAMS + OF… in acil_encode_cmd_change_timing_req()
203 void acil_encode_cmd_set_app_latency(uint8_t *buffer, aci_cmd_params_set_app_latency_t *p_aci_cmd_p… in acil_encode_cmd_set_app_latency() argument
205 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_SET_APP_LATENCY_LEN; in acil_encode_cmd_set_app_latency()
206 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_SET_APP_LATENCY; in acil_encode_cmd_set_app_latency()
207 …*(buffer + OFFSET_ACI_CMD_T_SET_APP_LATENCY + OFFSET_ACI_CMD_PARAMS_SET_APP_LATENCY_T_MODE) = (uin… in acil_encode_cmd_set_app_latency()
208 …*(buffer + OFFSET_ACI_CMD_T_SET_APP_LATENCY + OFFSET_ACI_CMD_PARAMS_SET_APP_LATENCY_T_LATENCY_MSB)… in acil_encode_cmd_set_app_latency()
209 …*(buffer + OFFSET_ACI_CMD_T_SET_APP_LATENCY + OFFSET_ACI_CMD_PARAMS_SET_APP_LATENCY_T_LATENCY_LSB)… in acil_encode_cmd_set_app_latency()
212 void acil_encode_cmd_change_timing_req_GAP_PPCP(uint8_t *buffer) in acil_encode_cmd_change_timing_req_GAP_PPCP() argument
214 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_CHANGE_TIMING_LEN_GAP_PPCP; in acil_encode_cmd_change_timing_req_GAP_PPCP()
215 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_CHANGE_TIMING; in acil_encode_cmd_change_timing_req_GAP_PPCP()
219 void acil_encode_cmd_setup(uint8_t *buffer, aci_cmd_params_setup_t *p_aci_cmd_params_setup, uint8_t… in acil_encode_cmd_setup() argument
221 *(buffer + OFFSET_ACI_CMD_T_LEN) = setup_data_size + MSG_SETUP_CMD_BASE_LEN; in acil_encode_cmd_setup()
222 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_SETUP; in acil_encode_cmd_setup()
223 …memcpy((buffer + OFFSET_ACI_CMD_T_SETUP), &(p_aci_cmd_params_setup->setup_data[0]), setup_data_siz… in acil_encode_cmd_setup()
226 void acil_encode_cmd_dtm_cmd(uint8_t *buffer, aci_cmd_params_dtm_cmd_t *p_aci_cmd_params_dtm_cmd) in acil_encode_cmd_dtm_cmd() argument
228 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_DTM_CMD; in acil_encode_cmd_dtm_cmd()
229 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_DTM_CMD; in acil_encode_cmd_dtm_cmd()
230 *(buffer + OFFSET_ACI_CMD_T_DTM_CMD) = p_aci_cmd_params_dtm_cmd->cmd_msb; in acil_encode_cmd_dtm_cmd()
231 *(buffer + OFFSET_ACI_CMD_T_DTM_CMD + 1) = p_aci_cmd_params_dtm_cmd->cmd_lsb; in acil_encode_cmd_dtm_cmd()
234 void acil_encode_cmd_send_data_ack(uint8_t *buffer, const uint8_t pipe_number ) in acil_encode_cmd_send_data_ack() argument
236 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_ACK_LEN; in acil_encode_cmd_send_data_ack()
237 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_SEND_DATA_ACK; in acil_encode_cmd_send_data_ack()
238 …*(buffer + OFFSET_ACI_CMD_T_SEND_DATA_ACK + OFFSET_ACI_CMD_PARAMS_SEND_DATA_ACK_T_PIPE_NUMBER) = p… in acil_encode_cmd_send_data_ack()
241 void acil_encode_cmd_send_data_nack(uint8_t *buffer, const uint8_t pipe_number, const uint8_t err_c… in acil_encode_cmd_send_data_nack() argument
243 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_NACK_LEN; in acil_encode_cmd_send_data_nack()
244 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_SEND_DATA_NACK; in acil_encode_cmd_send_data_nack()
245 …*(buffer + OFFSET_ACI_CMD_T_SEND_DATA_NACK + OFFSET_ACI_CMD_PARAMS_SEND_DATA_NACK_T_PIPE_NUMBER) =… in acil_encode_cmd_send_data_nack()
246 …*(buffer + OFFSET_ACI_CMD_T_SEND_DATA_NACK + OFFSET_ACI_CMD_PARAMS_SEND_DATA_NACK_T_ERROR_CODE) = … in acil_encode_cmd_send_data_nack()
249 void acil_encode_cmd_bond_security_request(uint8_t *buffer) in acil_encode_cmd_bond_security_request() argument
251 *(buffer + OFFSET_ACI_CMD_T_LEN) = 1; in acil_encode_cmd_bond_security_request()
252 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_BOND_SECURITY_REQUEST; in acil_encode_cmd_bond_security_request()
255 void acil_encode_cmd_broadcast(uint8_t *buffer, aci_cmd_params_broadcast_t * p_aci_cmd_params_broad… in acil_encode_cmd_broadcast() argument
257 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_BROADCAST_LEN; in acil_encode_cmd_broadcast()
258 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_BROADCAST; in acil_encode_cmd_broadcast()
259 …*(buffer + OFFSET_ACI_CMD_T_BROADCAST + OFFSET_ACI_CMD_PARAMS_BROADCAST_T_TIMEOUT_LSB) = (p_aci_cm… in acil_encode_cmd_broadcast()
260 …*(buffer + OFFSET_ACI_CMD_T_BROADCAST + OFFSET_ACI_CMD_PARAMS_BROADCAST_T_TIMEOUT_MSB) = (uint8_t)… in acil_encode_cmd_broadcast()
261 …*(buffer + OFFSET_ACI_CMD_T_BROADCAST + OFFSET_ACI_CMD_PARAMS_BROADCAST_T_ADV_INTERVAL_LSB) = (p_a… in acil_encode_cmd_broadcast()
262 …*(buffer + OFFSET_ACI_CMD_T_BROADCAST + OFFSET_ACI_CMD_PARAMS_BROADCAST_T_ADV_INTERVAL_MSB) = (uin… in acil_encode_cmd_broadcast()
265 void acil_encode_cmd_open_adv_pipes(uint8_t *buffer, aci_cmd_params_open_adv_pipe_t * p_aci_cmd_par… in acil_encode_cmd_open_adv_pipes() argument
267 *(buffer + OFFSET_ACI_CMD_T_LEN) = MSG_OPEN_ADV_PIPES_LEN; in acil_encode_cmd_open_adv_pipes()
268 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_OPEN_ADV_PIPE; in acil_encode_cmd_open_adv_pipes()
269 …memcpy(buffer + OFFSET_ACI_CMD_T_OPEN_ADV_PIPE + OFFSET_ACI_CMD_PARAMS_OPEN_ADV_PIPE_T_PIPES, p_ac… in acil_encode_cmd_open_adv_pipes()
273 void acil_encode_cmd_set_key(uint8_t *buffer, aci_cmd_params_set_key_t *p_aci_cmd_params_set_key) in acil_encode_cmd_set_key() argument
294 *(buffer + OFFSET_ACI_CMD_T_LEN) = len; in acil_encode_cmd_set_key()
295 *(buffer + OFFSET_ACI_CMD_T_CMD_OPCODE) = ACI_CMD_SET_KEY; in acil_encode_cmd_set_key()
296 …*(buffer + OFFSET_ACI_CMD_T_SET_KEY + OFFSET_ACI_CMD_PARAMS_SET_KEY_T_KEY_TYPE) = p_aci_cmd_params… in acil_encode_cmd_set_key()
297 …memcpy((buffer + OFFSET_ACI_CMD_T_SET_KEY + OFFSET_ACI_CMD_PARAMS_SET_KEY_T_PASSKEY), (uint8_t * )… in acil_encode_cmd_set_key()
300 bool acil_encode_cmd(uint8_t *buffer, aci_cmd_t *p_aci_cmd) in acil_encode_cmd() argument
307 acil_encode_cmd_set_test_mode(buffer, &(p_aci_cmd->params.test)); in acil_encode_cmd()
310 acil_encode_cmd_sleep(buffer); in acil_encode_cmd()
313 acil_encode_cmd_get_device_version(buffer); in acil_encode_cmd()
316 acil_encode_cmd_wakeup(buffer); in acil_encode_cmd()
319 …acil_encode_cmd_echo_msg(buffer, &(p_aci_cmd->params.echo), (p_aci_cmd->len - MSG_ECHO_MSG_CMD_BAS… in acil_encode_cmd()
322 acil_encode_cmd_battery_level(buffer); in acil_encode_cmd()
325 acil_encode_cmd_temparature(buffer); in acil_encode_cmd()
328 acil_encode_cmd_get_address(buffer); in acil_encode_cmd()
331 acil_encode_cmd_set_radio_tx_power(buffer, &(p_aci_cmd->params.set_tx_power)); in acil_encode_cmd()
334 acil_encode_cmd_connect(buffer, &(p_aci_cmd->params.connect)); in acil_encode_cmd()
337 acil_encode_cmd_bond(buffer, &(p_aci_cmd->params.bond)); in acil_encode_cmd()
340 acil_encode_cmd_disconnect(buffer, &(p_aci_cmd->params.disconnect)); in acil_encode_cmd()
343 acil_encode_baseband_reset(buffer); in acil_encode_cmd()
346 acil_encode_cmd_change_timing_req(buffer, &(p_aci_cmd->params.change_timing)); in acil_encode_cmd()
349 …acil_encode_cmd_setup(buffer, &(p_aci_cmd->params.setup), (p_aci_cmd->len - MSG_SETUP_CMD_BASE_LEN… in acil_encode_cmd()
352 acil_encode_cmd_dtm_cmd(buffer, &(p_aci_cmd->params.dtm_cmd)); in acil_encode_cmd()
355 acil_encode_cmd_read_dynamic_data(buffer); in acil_encode_cmd()
358 …acil_encode_cmd_write_dynamic_data(buffer, p_aci_cmd->params.write_dynamic_data.seq_no, &(p_aci_cm… in acil_encode_cmd()
361 acil_encode_cmd_open_remote_pipe(buffer, &(p_aci_cmd->params.open_remote_pipe)); in acil_encode_cmd()
364 …acil_encode_cmd_send_data(buffer, &(p_aci_cmd->params.send_data), (p_aci_cmd->len - MSG_SEND_DATA_… in acil_encode_cmd()
367 acil_encode_cmd_send_data_ack(buffer, p_aci_cmd->params.send_data_ack.pipe_number ); in acil_encode_cmd()
370 acil_encode_cmd_request_data(buffer, &(p_aci_cmd->params.request_data)); in acil_encode_cmd()
373 …acil_encode_cmd_set_local_data(buffer, (aci_cmd_params_set_local_data_t *)(&(p_aci_cmd->params.sen… in acil_encode_cmd()
376 acil_encode_cmd_bond_security_request(buffer); in acil_encode_cmd()