|
|
@@ -63,7 +63,12 @@ typedef struct {
|
|
|
uint8_t command_bits; ///< Default amount of bits in command phase (0-16), used when ``SPI_TRANS_VARIABLE_CMD`` is not used, otherwise ignored.
|
|
|
uint8_t address_bits; ///< Default amount of bits in address phase (0-64), used when ``SPI_TRANS_VARIABLE_ADDR`` is not used, otherwise ignored.
|
|
|
uint8_t dummy_bits; ///< Amount of dummy bits to insert between address and data phase
|
|
|
- uint8_t mode; ///< SPI mode (0-3)
|
|
|
+ uint8_t mode; /**< SPI mode, representing a pair of (CPOL, CPHA) configuration:
|
|
|
+ - 0: (0, 0)
|
|
|
+ - 1: (0, 1)
|
|
|
+ - 2: (1, 0)
|
|
|
+ - 3: (1, 1)
|
|
|
+ */
|
|
|
uint16_t duty_cycle_pos; ///< Duty cycle of positive clock, in 1/256th increments (128 = 50%/50% duty). Setting this to 0 (=not setting it) is equivalent to setting this to 128.
|
|
|
uint16_t cs_ena_pretrans; ///< Amount of SPI bit-cycles the cs should be activated before the transmission (0-16). This only works on half-duplex transactions.
|
|
|
uint8_t cs_ena_posttrans; ///< Amount of SPI bit-cycles the cs should stay active after the transmission (0-16)
|