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 void *handler_user_data;
141 cy_semaphore_t event_list_mutex;
152 whd_buffer_t send_buffer_hnd,
153 whd_buffer_t *response_buffer_hnd);
156 whd_buffer_t send_buffer_hnd,
157 whd_buffer_t *response_buffer_hnd);
160 whd_buffer_t *buffer,
161 uint16_t data_length,
166 whd_buffer_t *buffer,
167 uint16_t data_length);
169 void whd_process_cdc(
whd_driver_t whd_driver, whd_buffer_t buffer);
171 void whd_process_bdc(
whd_driver_t whd_driver, whd_buffer_t buffer);
173 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_error_handler_t)(whd_driver_t whd_driver, const uint8_t *error_type, const uint8_t *event_data, void *handler_user_data)
Error handler prototype definition.
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)
Error list element structure.
Defines common constants used with WHD within src folder.
Header for Event detection.