19 #include "whd_bus_protocol_interface.h" 20 #include "cy_result.h" 21 #include "cyhal_spi.h" 23 #ifndef INCLUDED_SPI_WHD_BUS_PROTOCOL_H 24 #define INCLUDED_SPI_WHD_BUS_PROTOCOL_H 38 typedef uint32_t whd_bus_gspi_header_t;
44 whd_bus_gspi_header_t gspi_header;
49 #define WHD_BUS_SPI_HEADER_SIZE (sizeof(whd_bus_header_t) ) 51 #define WHD_BUS_SPI_USE_STATUS_REPORT_SCHEME (1 == 1) 53 #define WHD_BUS_SPI_MAX_BACKPLANE_TRANSFER_SIZE (64) 54 #define WHD_BUS_SPI_BACKPLANE_READ_PADD_SIZE (4) 62 extern uint32_t whd_bus_spi_packet_available_to_read(
whd_driver_t whd_driver);
68 cy_semaphore_t *transceive_semaphore);
70 uint32_t address, uint8_t value_length, uint32_t value);
72 uint32_t address, uint8_t value_length, uint8_t *value);
74 uint8_t register_length, uint32_t value);
75 extern whd_result_t whd_bus_spi_read_backplane_value(
whd_driver_t whd_driver, uint32_t address, uint8_t register_length,
78 whd_bus_function_t
function, uint32_t address, uint16_t size,
82 extern void whd_bus_spi_init_stats(
whd_driver_t whd_driver);
85 extern uint8_t whd_bus_spi_backplane_read_padd_size(
whd_driver_t whd_driver);
87 extern uint32_t whd_bus_spi_get_max_transfer_size(
whd_driver_t whd_driver);
90 extern void whd_bus_spi_irq_handler(
void *handler_arg, cyhal_spi_irq_event_t event);
Provides abstract pointer type to act as instance for: driver, interface, buffer funcs, network funcs, resource funcs and bus funcs.
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.