Skip to content

Commit b15a522

Browse files
committed
add an example of supported "word_length" bitfield.
1 parent 355858e commit b15a522

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

hal/rfcs/0000-spi-overhaul.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ typedef struct {
9696
* testing.
9797
*/
9898
uint32_t maximum_frequency;
99-
/** Each bit represents the corresponding word length. lsb => 1bit, msb => 32bit. */
99+
/** Each bit represents the corresponding word length. lsb => 1bit, msb => 32bits.
100+
*
101+
* For example, if the peripheral supports 8 bits, 12bits to 16bits and 32bits,
102+
* the value should be 0x8000F880.
103+
*/
100104
uint32_t word_length;
101105
bool support_slave_mode; /**< If true, the device can handle SPI slave mode. */
102106
} spi_capabilities_t;

0 commit comments

Comments
 (0)