Network#
Functions#
Wireless library to acquire or wait for nwk semaphore.
Return network status.
Set network status.
Send data packet.
Process data receive packet.
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.
[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
269
of file driver/rsi_nwk.c
rsi_wlan_get_nwk_status#
int32_t rsi_wlan_get_nwk_status (void )
Return network status.
[in] |
Returns
0 - Success Non-Zero Value - Failure
293
of file driver/rsi_nwk.c
rsi_wlan_set_nwk_status#
void rsi_wlan_set_nwk_status (int32_t status)
Set network status.
[in] | status | - status value to be set |
Returns
void
306
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.
[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
327
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.
[in] | pkt | - pointer to data packet |
Returns
0 - Success Non-Zero Value - Failure
483
of file driver/rsi_nwk.c
rsi_post_waiting_nwk_semaphore#
void rsi_post_waiting_nwk_semaphore ( void)
Posting of the network semaphores which are on wait.
[in] | void |
Returns
void
628
of file driver/rsi_nwk.c