Driver for CC3000 Wi-Fi module
Dependencies: NVIC_set_all_priorities
Dependents: CC3000_Simple_Socket Wi-Go_IOT_Demo
Evnt_handler
Functions | |
void | hci_unsol_handle_patch_request (char *event_hdr) |
Handle unsolicited event from type patch request. | |
unsigned char * | hci_event_handler (void *pRetParams, unsigned char *from, unsigned char *fromlen) |
Parse the incoming event packets and issue corresponding event handler from global array of handlers pointers. | |
long | hci_unsol_event_handler (char *event_hdr) |
Handle unsolicited events. | |
long | hci_unsolicited_event_handler (void) |
Parse the incoming unsolicited event packets and start corresponding event handler. | |
void | set_socket_active_status (long Sd, long Status) |
Check if the socket ID and status are valid and set the global socket status accordingly. | |
long | hci_event_unsol_flowcontrol_handler (char *pEvent) |
Keep track on the number of packets transmitted and update the number of free buffer in the SL device. | |
long | get_socket_active_status (long Sd) |
Get the socket status. | |
void | update_socket_active_status (char *resp_params) |
Update the socket status. | |
void | SimpleLinkWaitEvent (unsigned short usOpcode, void *pRetParams) |
Wait for event, pass it to the hci_event_handler and update the event opcode in a global variable. | |
void | SimpleLinkWaitData (unsigned char *pBuf, unsigned char *from, unsigned char *fromlen) |
Wait for data, pass it to the hci_event_handler and set the data available flag. |
Function Documentation
long get_socket_active_status | ( | long | Sd ) |
Get the socket status.
- Parameters:
-
Sd Socket IS
- Returns:
- Current status of the socket.
Definition at line 547 of file evnt_handler.cpp.
unsigned char* hci_event_handler | ( | void * | pRetParams, |
unsigned char * | from, | ||
unsigned char * | fromlen | ||
) |
Parse the incoming event packets and issue corresponding event handler from global array of handlers pointers.
- Parameters:
-
pRetParams incoming data buffer from from information (in case of data received) fromlen from information length (in case of data received)
- Returns:
- none
Definition at line 112 of file evnt_handler.cpp.
long hci_event_unsol_flowcontrol_handler | ( | char * | pEvent ) |
Keep track on the number of packets transmitted and update the number of free buffer in the SL device.
Called when unsolicited event = HCI_EVNT_DATA_UNSOL_FREE_BUFF has received.
- Parameters:
-
pEvent pointer to the string contains parameters for IPERF
- Returns:
- ESUCCESS if successful, EFAIL if an error occurred
long hci_unsol_event_handler | ( | char * | event_hdr ) |
Handle unsolicited events.
- Parameters:
-
event_hdr event header
- Returns:
- 1 if event supported and handled
- 0 if event is not supported
Definition at line 349 of file evnt_handler.cpp.
void hci_unsol_handle_patch_request | ( | char * | event_hdr ) |
Handle unsolicited event from type patch request.
- Parameters:
-
event_hdr event header
- Returns:
- none
Definition at line 51 of file evnt_handler.cpp.
long hci_unsolicited_event_handler | ( | void | ) |
Parse the incoming unsolicited event packets and start corresponding event handler.
- Parameters:
-
None
- Returns:
- ESUCCESS if successful, EFAIL if an error occurred
Definition at line 483 of file evnt_handler.cpp.
void set_socket_active_status | ( | long | Sd, |
long | Status | ||
) |
Check if the socket ID and status are valid and set the global socket status accordingly.
- Parameters:
-
Sd Status
- Returns:
- none
Definition at line 511 of file evnt_handler.cpp.
void SimpleLinkWaitData | ( | unsigned char * | pBuf, |
unsigned char * | from, | ||
unsigned char * | fromlen | ||
) |
Wait for data, pass it to the hci_event_handler and set the data available flag.
- Parameters:
-
pBuf data buffer from from information fromlen from information length
- Returns:
- none
Wait for data, pass it to the hci_event_handler and set the data available flag.
- Parameters:
-
pBuf data buffer from from information fromlen from information length
- Returns:
- none
Definition at line 580 of file evnt_handler.cpp.
void SimpleLinkWaitEvent | ( | unsigned short | usOpcode, |
void * | pRetParams | ||
) |
Wait for event, pass it to the hci_event_handler and update the event opcode in a global variable.
- Parameters:
-
usOpcode command operation code pRetParams command return parameters
- Returns:
- none
Definition at line 571 of file evnt_handler.cpp.
void update_socket_active_status | ( | char * | resp_params ) |
Update the socket status.
- Parameters:
-
resp_params Socket IS
- Returns:
- Current status of the socket.
Generated on Wed Jul 13 2022 18:31:31 by 1.7.2