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.
Type | Direction | Argument Name | Description |
---|---|---|---|
rsi_semaphore_handle_t * | [in] | semaphore | - Semaphore handle pointer |
uint32_t | [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
rsi_wlan_get_nwk_status#
int32_t rsi_wlan_get_nwk_status (void )
Return network status.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | [in] |
Returns
0 - Success Non-Zero Value - Failure
rsi_wlan_set_nwk_status#
void rsi_wlan_set_nwk_status (int32_t status)
Set network status.
Type | Direction | Argument Name | Description |
---|---|---|---|
int32_t | [in] | status | - status value to be set |
Returns
void
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.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | sockID | - socket descriptor on which data needs to be send |
uint8_t * | [in] | buffer | - pointer to data |
uint32_t | [in] | length | - data length |
struct rsi_sockaddr * | [in] | destAddr | - pointer to destination socket details |
Returns
0 - Success Non-Zero Value - Failure
rsi_driver_process_recv_data_non_rom#
int32_t rsi_driver_process_recv_data_non_rom (rsi_pkt_t * pkt)
Process data receive packet.
Type | Direction | Argument Name | Description |
---|---|---|---|
rsi_pkt_t * | [in] | pkt | - pointer to data packet |
Returns
0 - Success Non-Zero Value - Failure
rsi_post_waiting_nwk_semaphore#
void rsi_post_waiting_nwk_semaphore ( void)
Posting of the network semaphores which are on wait.
Type | Direction | Argument Name | Description |
---|---|---|---|
[in] | void |
Returns
void