18 #ifndef INCLUDED_WHD_CDC_BDC_H 19 #define INCLUDED_WHD_CDC_BDC_H 22 #include "cyabs_rtos.h" 36 #define CDCF_IOC_SET (0x02) 37 #define WHD_EVENT_HANDLER_LIST_SIZE (5) 38 #define WHD_SDALIGN 32 41 #define CDCF_IOC_ERROR (0x01) 42 #define CDCF_IOC_IF_MASK (0xF000) 43 #define CDCF_IOC_IF_SHIFT (12) 44 #define CDCF_IOC_ID_MASK (0xFFFF0000) 45 #define CDCF_IOC_ID_SHIFT (16) 47 #define DATA_AFTER_HEADER(x) ( (void *)(&x[1]) ) 49 #define BDC_HEADER_LEN (4) 55 typedef enum sdpcm_command_type_enum
58 CDC_SET = CDCF_IOC_SET
100 whd_event_num_t
events[WHD_MAX_EVENT_SUBSCRIPTION];
102 void *handler_user_data;
112 cy_semaphore_t event_list_mutex;
115 uint16_t requested_ioctl_id;
116 cy_semaphore_t ioctl_mutex;
117 whd_buffer_t ioctl_response;
118 cy_semaphore_t ioctl_sleep;
130 whd_buffer_t send_buffer_hnd,
131 whd_buffer_t *response_buffer_hnd);
134 whd_buffer_t send_buffer_hnd,
135 whd_buffer_t *response_buffer_hnd);
138 whd_buffer_t *buffer,
139 uint16_t data_length,
144 whd_buffer_t *buffer,
145 uint16_t data_length);
147 void whd_process_cdc(
whd_driver_t whd_driver, whd_buffer_t buffer);
149 void whd_process_bdc(
whd_driver_t whd_driver, whd_buffer_t buffer);
151 void whd_process_bdc_event(
whd_driver_t whd_driver, whd_buffer_t buffer, uint16_t size);
void *(* whd_event_handler_t)(whd_interface_t ifp, const whd_event_header_t *event_header, const uint8_t *event_data, void *handler_user_data)
Event handler prototype definition.
Provides abstract pointer type to act as instance for: driver, interface, buffer funcs, network funcs, resource funcs and bus funcs.
Event list element structure.
whd_bool_t
Boolean values.
Structure for storing a MAC address (Wi-Fi Media Access Control address).
uint32_t whd_result_t
WHD result is specified as uint32_t value.
void whd_network_send_ethernet_data(whd_interface_t ifp, whd_buffer_t buffer)
To send an ethernet frame to WHD (called by the Network Stack)
Defines common constants used with WHD within src folder.
Header for Event detection.