Home
last modified time | relevance | path

Searched refs:packet (Results 1 – 22 of 22) sorted by relevance

/hal_silabs-latest/wiseconnect/components/device/silabs/si91x/wireless/sl_net/src/
Dsl_net_si91x_integration_handler.c149 void sl_net_si91x_event_dispatch_handler(sli_si91x_queue_packet_t *data, sl_si91x_packet_t *packet) in sl_net_si91x_event_dispatch_handler() argument
159 …if (packet->command == RSI_WLAN_REQ_EMB_MQTT_CLIENT || packet->command == RSI_WLAN_RSP_EMB_MQTT_PU… in sl_net_si91x_event_dispatch_handler()
160 || packet->command == RSI_WLAN_RSP_MQTT_REMOTE_TERMINATE) { in sl_net_si91x_event_dispatch_handler()
163 } else if (packet->command == RSI_WLAN_RSP_JOIN) { in sl_net_si91x_event_dispatch_handler()
170 if (packet->command == RSI_WLAN_RSP_SNTP_CLIENT) { in sl_net_si91x_event_dispatch_handler()
179 … (packet->command == RSI_WLAN_REQ_SOCKET_ACCEPT || packet->command == RSI_WLAN_RSP_REMOTE_TERMINATE in sl_net_si91x_event_dispatch_handler()
180 … || packet->command == RSI_RECEIVE_RAW_DATA || packet->command == RSI_WLAN_RSP_TCP_ACK_INDICATION in sl_net_si91x_event_dispatch_handler()
181 || packet->command == RSI_WLAN_RSP_SELECT_REQUEST); in sl_net_si91x_event_dispatch_handler()
183 sl_si91x_packet_t *raw_rx_packet = packet; in sl_net_si91x_event_dispatch_handler()
199 (packet->command == RSI_WLAN_RSP_CLIENT_DISCONNECTED in sl_net_si91x_event_dispatch_handler()
[all …]
Dsl_net_si91x_callback_framework.c47 …sl_si91x_packet_t *packet = sl_si91x_host_get_buffer_data(buffer, 0, NULL); in sl_si91x_default_handler() local
48 … = convert_and_save_firmware_status(get_si91x_frame_status(packet)); in sl_si91x_default_handler()
66 convert_si91x_dns_response(&ip, (sl_si91x_dns_response_t *)packet->data); in sl_si91x_default_handler()
72 data = &packet->data; // Use packet data directly for certain events in sl_si91x_default_handler()
81 if (packet->command == RSI_WLAN_RSP_IPCONFV6) { in sl_si91x_default_handler()
82 ipv6_parameters = (sl_si91x_rsp_ipv6_params_t *)packet->data; in sl_si91x_default_handler()
98 ipv4_parameters = (sl_si91x_rsp_ipv4_params_t *)packet->data; in sl_si91x_default_handler()
115 net_event_handler(event, status, data, packet->length); in sl_si91x_default_handler()
Dsl_si91x_net_internal_stack.c57 sl_si91x_packet_t *packet; in sli_si91x_configure_ip_address() local
123 packet = sl_si91x_host_get_buffer_data(buffer, 0, NULL); in sli_si91x_configure_ip_address()
127 const sl_si91x_rsp_ipv4_params_t *response_data = (sl_si91x_rsp_ipv4_params_t *)packet->data; in sli_si91x_configure_ip_address()
171packet = sl_si91x_host_get_buffer_data(buffer, 0, NULL); in sli_si91x_configure_ip_address()
172 const sl_si91x_rsp_ipv6_params_t *ipv6_response = (sl_si91x_rsp_ipv6_params_t *)packet->data; in sli_si91x_configure_ip_address()
/hal_silabs-latest/wiseconnect/components/device/silabs/si91x/wireless/threading/
Dsli_si91x_multithreaded.c51 #define SL_NET_EVENT_DISPATCH_HANDLER(data, packet) \ argument
54 UNUSED_PARAMETER(packet); \
167 sli_si91x_queue_packet_t *packet = NULL; in sl_create_generic_rx_packet_from_params() local
183 packet = sl_si91x_host_get_buffer_data(buffer, 0, &temp); in sl_create_generic_rx_packet_from_params()
184 if (packet == NULL) { in sl_create_generic_rx_packet_from_params()
190 packet->sdk_context = sdk_context; in sl_create_generic_rx_packet_from_params()
191 packet->flags = flags; in sl_create_generic_rx_packet_from_params()
192 packet->frame_status = frame_status; in sl_create_generic_rx_packet_from_params()
193 packet->firmware_queue_id = RSI_WLAN_MGMT_Q; in sl_create_generic_rx_packet_from_params()
195 *queue_packet = packet; in sl_create_generic_rx_packet_from_params()
[all …]
/hal_silabs-latest/wiseconnect/components/protocol/wifi/src/
Dsl_wifi_callback_framework.c70 …sl_si91x_packet_t *packet = (sl_si91x_packet_t *)sl_si91x_host_get_buffer_data((sl_wifi_buffer_t *… in sl_wifi_default_event_handler() local
72 sl_status_t status = convert_and_save_firmware_status(get_si91x_frame_status(packet)); in sl_wifi_default_event_handler()
73 if (packet->command == RSI_WLAN_RSP_JOIN) { in sl_wifi_default_event_handler()
86 if (RSI_WLAN_RSP_CLIENT_CONNECTED == packet->command) { in sl_wifi_default_event_handler()
92 tx_cfm_cb_data.status = packet->desc[15]; in sl_wifi_default_event_handler()
93 tx_cfm_cb_data.rate = packet->data[0]; //Extended descriptor in data[] for rate in sl_wifi_default_event_handler()
94 tx_cfm_cb_data.priority = packet->data[4]; //Extended descriptor in data[] for priority in sl_wifi_default_event_handler()
95 memcpy(&tx_cfm_cb_data.token, &packet->data[8], 4); //Extended descriptor in data[] for token in sl_wifi_default_event_handler()
100 uint16_t payload_offset = packet->desc[4]; in sl_wifi_default_event_handler()
101 uint16_t payload_length = packet->length & 0xFFF; in sl_wifi_default_event_handler()
[all …]
/hal_silabs-latest/wiseconnect/components/device/silabs/si91x/wireless/src/
Dsl_si91x_driver.c123 sli_si91x_queue_packet_t *packet; member
725 const sl_si91x_packet_t *packet = sl_si91x_host_get_buffer_data(buffer, 0, NULL); in sl_si91x_get_flash_efuse_data() local
726 if (packet->length > 0) { in sl_si91x_get_flash_efuse_data()
729 memcpy(&efuse_data->mfg_sw_version, packet->data, packet->length); in sl_si91x_get_flash_efuse_data()
732 memcpy(&efuse_data->pte_crc, packet->data, packet->length); in sl_si91x_get_flash_efuse_data()
749 sl_si91x_packet_t *packet; in sl_si91x_driver_raw_send_command() local
754 (void **)&packet, in sl_si91x_driver_raw_send_command()
760 if (packet == NULL) { in sl_si91x_driver_raw_send_command()
765 memset(packet->desc, 0, sizeof(packet->desc)); in sl_si91x_driver_raw_send_command()
767 memcpy(packet->data, data, data_length); in sl_si91x_driver_raw_send_command()
[all …]
Dsl_rsi_utility.c465 void sli_handle_wifi_beacon(sl_si91x_packet_t *packet) in sli_handle_wifi_beacon() argument
469 sli_wifi_data_frame_t *wifi_frame = (sli_wifi_data_frame_t *)packet->data; in sli_handle_wifi_beacon()
473 recv_freq = packet->desc[9]; in sli_handle_wifi_beacon()
474 recv_freq = (recv_freq << 8) | packet->desc[8]; in sli_handle_wifi_beacon()
475 scan_info.rssi = (~packet->desc[10]); in sli_handle_wifi_beacon()
476 scan_info.channel = packet->desc[11]; in sli_handle_wifi_beacon()
496 if (packet->length <= SLI_WIFI_MINIMUM_FRAME_LENGTH) { in sli_handle_wifi_beacon()
499 ies_length = packet->length - SLI_WIFI_MINIMUM_FRAME_LENGTH; in sli_handle_wifi_beacon()
1781 void print_80211_packet(const uint8_t *packet, uint32_t packet_length, uint16_t max_payload_length) in print_80211_packet() argument
1786 header_length += (packet[0] & BIT(7)) ? 2 : 0; /* 2 bytes QoS control */ in print_80211_packet()
[all …]
/hal_silabs-latest/wiseconnect/components/device/silabs/si91x/wireless/socket/src/
Dsl_si91x_socket_utility.c449 sl_si91x_packet_t *packet = (sl_si91x_packet_t *)buffer->data; in sli_get_socket_command_from_host_packet() local
450 return (packet == NULL ? -1 : packet->command); in sli_get_socket_command_from_host_packet()
471 sl_si91x_packet_t *packet = NULL; in create_and_send_socket_request() local
582 packet = sl_si91x_host_get_buffer_data(buffer, 0, NULL); in create_and_send_socket_request()
583 socket_create_response = (sl_si91x_socket_create_response_t *)packet->data; in create_and_send_socket_request()
718 sl_si91x_packet_t *packet = sl_si91x_host_get_buffer_data(response, 0, NULL); in sli_si91x_accept() local
719 sl_si91x_rsp_ltcp_est_t *ltcp = (sl_si91x_rsp_ltcp_est_t *)packet->data; in sli_si91x_accept()
792 sl_si91x_packet_t *packet = sl_si91x_host_get_buffer_data(response_buffer, 0, NULL); in sli_si91x_shutdown() local
793 socket_close_response = (sl_si91x_socket_close_response_t *)packet->data; in sli_si91x_shutdown()
971 sl_si91x_packet_t *packet; in sli_si91x_send_socket_command() local
[all …]
/hal_silabs-latest/wiseconnect/components/protocol/wifi/si91x/
Dsl_wifi.c335 sl_si91x_packet_t *packet; in sl_wifi_wait_for_scan_results() local
343 packet = sl_si91x_host_get_buffer_data(buffer, 0, NULL); in sl_wifi_wait_for_scan_results()
344 status = convert_and_save_firmware_status(get_si91x_frame_status(packet)); in sl_wifi_wait_for_scan_results()
347 if (packet->command == RSI_WLAN_RSP_SCAN) { in sl_wifi_wait_for_scan_results()
348 *scan_results = (sl_wifi_scan_result_t *)malloc(packet->length); in sl_wifi_wait_for_scan_results()
353 memcpy(*scan_results, packet->data, packet->length); in sl_wifi_wait_for_scan_results()
476 sl_si91x_packet_t *packet = NULL; in sl_wifi_connect() local
645 packet = sl_si91x_host_get_buffer_data(buffer, 0, NULL); in sl_wifi_connect()
647 if (packet->data[0] != 'C') { in sl_wifi_connect()
722 sl_si91x_packet_t *packet = sl_si91x_host_get_buffer_data(buffer, 0, NULL); in sl_wifi_get_signal_strength() local
[all …]
/hal_silabs-latest/wiseconnect/components/device/silabs/si91x/wireless/ahb_interface/src/
Dsl_si91x_bus.c72 sl_si91x_packet_t *packet; in sli_si91x_submit_rx_pkt() local
86 packet = sl_si91x_host_get_buffer_data(rx_pkt_buffer, 0, &data_length); in sli_si91x_submit_rx_pkt()
87 pkt_buffer = (int8_t *)&packet->desc[0]; in sli_si91x_submit_rx_pkt()
124 sl_status_t sl_si91x_bus_write_frame(sl_si91x_packet_t *packet, const uint8_t *payloadparam, uint16… in sl_si91x_bus_write_frame() argument
128 tx_desc[0].addr = (M4_MEMORY_OFFSET_ADDRESS + (uint32_t)&packet->desc[0]); in sl_si91x_bus_write_frame()
/hal_silabs-latest/wiseconnect/components/device/silabs/si91x/wireless/sl_net/inc/
Dsl_net_si91x_integration_handler.h33 #define SL_NET_EVENT_DISPATCH_HANDLER(data, packet) sl_net_si91x_event_dispatch_handler(data, packe… argument
35 void sl_net_si91x_event_dispatch_handler(sli_si91x_queue_packet_t *data, sl_si91x_packet_t *packet);
/hal_silabs-latest/wiseconnect/components/device/silabs/si91x/wireless/inc/
Dsl_si91x_core_utilities.h41 static inline uint16_t get_si91x_frame_status(const sl_si91x_packet_t *packet) in get_si91x_frame_status() argument
43 return (uint16_t)(packet->desc[12] + (packet->desc[13] << 8)); in get_si91x_frame_status()
Dsl_rsi_utility.h80 void sli_handle_wifi_beacon(sl_si91x_packet_t *packet);
348 sl_status_t sl_si91x_bus_write_frame(sl_si91x_packet_t *packet, const uint8_t *payloadparam, uint16…
/hal_silabs-latest/wiseconnect/components/service/network_manager/si91x/
Dsl_net_si91x.c232 sl_si91x_packet_t *packet; in sl_net_dns_resolve_hostname() local
258 packet = sl_si91x_host_get_buffer_data(buffer, 0, NULL); in sl_net_dns_resolve_hostname()
259 dns_response = (sl_si91x_dns_response_t *)packet->data; in sl_net_dns_resolve_hostname()
/hal_silabs-latest/simplicity_sdk/protocol/bluetooth/bgstack/ll/inc/
Dsl_btctrl_callbacks.h77 bool sl_btctrl_filter_scan_request_transmission_cb(sl_btctrl_packet_t packet);
Dsl_btctrl_packets.h51 int8_t sl_btctrl_get_packet_rssi(sl_btctrl_packet_t packet);
Dsl_btctrl_hci_handler.h53 typedef bool (*sl_btctrl_vendor_handler)(struct sl_btctrl_hci_message * packet);
/hal_silabs-latest/wiseconnect/components/common/inc/
Dsl_utility.h92 void print_80211_packet(const uint8_t *packet, uint32_t packet_length, uint16_t max_payload_length);
/hal_silabs-latest/wiseconnect/components/device/silabs/si91x/wireless/asynchronous_socket/src/
Dsl_si91x_socket.c463 sl_si91x_packet_t *packet = NULL; in sl_si91x_recvfrom() local
525 packet = sl_si91x_host_get_buffer_data(buffer, 0, NULL); in sl_si91x_recvfrom()
528 response = (sl_si91x_socket_metadata_t *)packet->data; in sl_si91x_recvfrom()
/hal_silabs-latest/gecko/emlib/src/
Dem_eusart.c484 uint32_t packet; in EUSART_Dali_Tx() local
499 packet = (data >> (index * 16)); in EUSART_Dali_Tx()
501 packet &= 0x0000FFFF; in EUSART_Dali_Tx()
502 eusart->TXDATA = packet; in EUSART_Dali_Tx()
/hal_silabs-latest/simplicity_sdk/platform/emlib/src/
Dem_eusart.c487 uint32_t packet; in EUSART_Dali_Tx() local
502 packet = (data >> (index * 16)); in EUSART_Dali_Tx()
504 packet &= 0x0000FFFF; in EUSART_Dali_Tx()
505 eusart->TXDATA = packet; in EUSART_Dali_Tx()
/hal_silabs-latest/wiseconnect/components/device/silabs/si91x/wireless/socket/inc/
Dsl_si91x_socket_utility.h234 int sli_si91x_get_socket_id(sl_si91x_packet_t *packet);