Driver for CC3000 Wi-Fi module

Dependencies:   NVIC_set_all_priorities

Dependents:   CC3000_Simple_Socket Wi-Go_IOT_Demo

Embed: (wiki syntax)

« Back to documentation index

Evnt_handler

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:
SdSocket 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:
pRetParamsincoming data buffer
fromfrom information (in case of data received)
fromlenfrom 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:
pEventpointer 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_hdrevent 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_hdrevent 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:
pBufdata buffer
fromfrom information
fromlenfrom information length
Returns:
none

Wait for data, pass it to the hci_event_handler and set the data available flag.

Parameters:
pBufdata buffer
fromfrom information
fromlenfrom 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:
usOpcodecommand operation code
pRetParamscommand 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_paramsSocket IS
Returns:
Current status of the socket.