Network#
Functions#
Wait for network semaphore.
Return network status.
Set network status.
Send data packet.
Process received data packet.
Post the network semaphore which is 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)
Wait for network semaphore.
[in] | semaphore | - Semaphore handle pointer |
[in] | timeout_ms | - Maximum time to wait to acquire semaphore. If timeout_ms is 0 then wait till semaphore is acquired. |
Returns
0 - Success
Non-Zero Value - Failure
267
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
Note
Precondition - This API should be called after rsi_device_init()
291
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
304
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
325
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 received data packet.
[in] | pkt | - pointer to data packet |
Returns
0 - Success
Non-Zero Value - Failure
481
of file driver/rsi_nwk.c
rsi_post_waiting_nwk_semaphore#
void rsi_post_waiting_nwk_semaphore ( void)
Post the network semaphore which is on wait.
[in] | void |
Returns
Void
626
of file driver/rsi_nwk.c