Changeset View
Changeset View
Standalone View
Standalone View
dev/spibus/spi.h
Context not available. | |||||
*/ | */ | ||||
struct spi_command { | struct spi_command { | ||||
uint32_t clock_speed_hz; | |||||
void *tx_cmd; | void *tx_cmd; | ||||
uint32_t tx_cmd_sz; | uint32_t tx_cmd_sz; | ||||
void *rx_cmd; | void *rx_cmd; | ||||
Context not available. | |||||
uint32_t rx_data_sz; | uint32_t rx_data_sz; | ||||
}; | }; | ||||
#define SPI_COMMAND_INITIALIZER { 0 } | |||||
#define SPI_CHIP_SELECT_HIGH 0x1 /* Chip select high (else low) */ | #define SPI_CHIP_SELECT_HIGH 0x1 /* Chip select high (else low) */ | ||||
Context not available. |