22 #include "whd_bus_protocol_interface.h" 24 #ifndef INCLUDED_WHD_BUS_H_ 25 #define INCLUDED_WHD_BUS_H_ 33 typedef struct whd_bus_if *whd_bus_if_t;
36 uint8_t *data, uint16_t data_size,
void *arg1,
void *arg2,
void *arg3,
45 typedef uint32_t (*whd_bus_packet_available_to_read_t)(
whd_driver_t whd_driver);
49 uint8_t register_length, uint32_t value);
51 uint8_t register_length, uint8_t *value);
54 uint32_t address, uint8_t value_length, uint32_t value);
56 uint32_t address, uint8_t value_length, uint8_t *value);
59 whd_bus_function_t
function, uint32_t address, uint16_t size,
66 typedef uint8_t (*whd_bus_backplane_read_padd_size_t)(
whd_driver_t whd_driver);
69 cy_semaphore_t *transceive_semaphore);
71 typedef uint32_t (*whd_bus_get_max_transfer_size_t)(
whd_driver_t whd_driver);
73 typedef void (*whd_bus_init_stats_t)(
whd_driver_t whd_driver);
81 whd_bus_init_t whd_bus_init_fptr;
82 whd_bus_deinit_t whd_bus_deinit_fptr;
84 whd_bus_ack_interrupt_t whd_bus_ack_interrupt_fptr;
85 whd_bus_send_buffer_t whd_bus_send_buffer_fptr;
87 whd_bus_wake_interrupt_present_t whd_bus_wake_interrupt_present_fptr;
88 whd_bus_packet_available_to_read_t whd_bus_packet_available_to_read_fptr;
89 whd_bus_read_frame_t whd_bus_read_frame_fptr;
91 whd_bus_write_backplane_value_t whd_bus_write_backplane_value_fptr;
92 whd_bus_read_backplane_value_t whd_bus_read_backplane_value_fptr;
94 whd_bus_write_register_value_t whd_bus_write_register_value_fptr;
95 whd_bus_read_register_value_t whd_bus_read_register_value_fptr;
97 whd_bus_transfer_bytes_t whd_bus_transfer_bytes_fptr;
99 whd_bus_poke_wlan_t whd_bus_poke_wlan_fptr;
101 whd_bus_wakeup_t whd_bus_wakeup_fptr;
102 whd_bus_sleep_t whd_bus_sleep_fptr;
104 whd_bus_backplane_read_padd_size_t whd_bus_backplane_read_padd_size_fptr;
106 whd_bus_wait_for_wlan_event_t whd_bus_wait_for_wlan_event_fptr;
107 whd_bus_use_status_report_scheme_t whd_bus_use_status_report_scheme_fptr;
109 whd_bus_get_max_transfer_size_t whd_bus_get_max_transfer_size_fptr;
111 whd_bus_init_stats_t whd_bus_init_stats_fptr;
112 whd_bus_print_stats_t whd_bus_print_stats_fptr;
113 whd_bus_reinit_stats_t whd_bus_reinit_stats_fptr;
114 whd_bus_irq_register_t whd_bus_irq_register_fptr;
115 whd_bus_irq_enable_t whd_bus_irq_enable_fptr;
whd_bus_transfer_direction_t
Transfer direction for the WHD platform bus interface.
whd_bool_t
Boolean values.
uint32_t whd_result_t
WHD result is specified as uint32_t value.