Network#

Functions#

rsi_error_t
rsi_wait_on_nwk_semaphore(rsi_semaphore_handle_t *semaphore, uint32_t timeout_ms)

Wireless library to acquire or wait for nwk semaphore.

int32_t

Return network status.

void
rsi_wlan_set_nwk_status(int32_t status)

Set network status.

int32_t
rsi_driver_send_data_non_rom(uint32_t sockID, uint8_t *buffer, uint32_t length, struct rsi_sockaddr *destAddr)

Send data packet.

int32_t

Process data receive packet.

void

Posting of the network semaphores which are on wait.

Function Documentation#

rsi_wait_on_nwk_semaphore#

rsi_error_t rsi_wait_on_nwk_semaphore (rsi_semaphore_handle_t * semaphore, uint32_t timeout_ms)

Wireless library to acquire or wait for nwk semaphore.

Parameters
[in]semaphore

- Semaphore handle pointer

[in]timeout_ms

- Maximum time to wait to acquire semaphore. If timeout_ms is 0 then wait till acquire semaphore.

Returns

  • 0 - Success Negative Value - Failure


Definition at line 268 of file driver/rsi_nwk.c

rsi_wlan_get_nwk_status#

int32_t rsi_wlan_get_nwk_status (void )

Return network status.

Parameters
[in]

Returns

  • 0 - Success Non-Zero Value - Failure


Definition at line 292 of file driver/rsi_nwk.c

rsi_wlan_set_nwk_status#

void rsi_wlan_set_nwk_status (int32_t status)

Set network status.

Parameters
[in]status

- status value to be set

Returns

  • void


Definition at line 305 of file driver/rsi_nwk.c

rsi_driver_send_data_non_rom#

int32_t rsi_driver_send_data_non_rom (uint32_t sockID, uint8_t * buffer, uint32_t length, struct rsi_sockaddr * destAddr)

Send data packet.

Parameters
[in]sockID

- socket descriptor on which data needs to be send

[in]buffer

- pointer to data

[in]length

- data length

[in]destAddr

- pointer to destination socket details

Returns

  • 0 - Success Non-Zero Value - Failure


Definition at line 326 of file driver/rsi_nwk.c

rsi_driver_process_recv_data_non_rom#

int32_t rsi_driver_process_recv_data_non_rom (rsi_pkt_t * pkt)

Process data receive packet.

Parameters
[in]pkt

- pointer to data packet

Returns

  • 0 - Success Non-Zero Value - Failure


Definition at line 482 of file driver/rsi_nwk.c

References global_cb_s::rsi_socket_pool , rsi_pkt_s::data , rsi_pkt_s::desc , rsi_bytes2R_to_uint16 , rsi_wlan_cb_non_rom_s::callback_list , rsi_callback_cb_s::raw_data_receive_handler , rsi_application_socket_descriptor , rsi_rsp_socket_recv_s::socket_id , rsi_wlan_socket_set_status , rsi_rsp_socket_recv_s::length , rsi_rsp_socket_recv_s::offset , rsi_socket_info_s::sock_type , rsi_socket_info_s::destination_port , rsi_rsp_socket_recv_s::dest_port , rsi_socket_info_s::destination_ip_addr , rsi_ip_addr_u::ipv4 , rsi_rsp_socket_recv_s::dest_ip_addr , rsi_rsp_socket_recv_s::ipv4_address , rsi_ip_addr_u::ipv6 , rsi_rsp_socket_recv_s::ipv6_address , rsi_socket_info_s::sock_bitmap , rsi_socket_info_s::sock_receive_callback , global_cb_s::rx_buffer_mem_copy , rsi_socket_info_s::sock_recv_available_length , rsi_socket_info_s::sock_recv_buffer , rsi_socket_info_s::recv_buffer , rsi_socket_info_s::recv_buffer_length , rsi_rsp_socket_recv_s::more_data_pending , rsi_socket_info_non_rom_s::more_rx_data_pending , rsi_rsp_socket_recv_s::end_of_the_data , rsi_socket_info_non_rom_s::socket_wait_bitmap , and rsi_socket_info_non_rom_s::recv_pending_bit

rsi_post_waiting_nwk_semaphore#

void rsi_post_waiting_nwk_semaphore ( void)

Posting of the network semaphores which are on wait.

Parameters
[in]void

Returns

  • void


Definition at line 627 of file driver/rsi_nwk.c