Mbed OS Reference
Loading...
Searching...
No Matches
spi_capabilities_t Struct Reference

Describes the capabilities of a SPI peripherals. More...

#include <spi_api.h>

Data Fields

uint32_t minimum_frequency
 Minimum frequency supported must be set by target device and it will be assessed during testing. More...
 
uint32_t maximum_frequency
 Maximum frequency supported must be set by target device and it will be assessed during testing. More...
 
uint32_t word_length
 Each bit represents the corresponding word length. More...
 
uint16_t slave_delay_between_symbols_ns
 specifies required number of ns between transmission of successive symbols in slave mode. More...
 
uint8_t clk_modes
 specifies supported modes from spi_mode_t. More...
 
bool support_slave_mode
 If true, the device can handle SPI slave mode using hardware management on the specified ssel pin. More...
 
bool hw_cs_handle
 If true, in SPI master mode Chip Select can be handled by hardware. More...
 
bool async_mode
 If true, in async mode is supported. More...
 
bool tx_rx_buffers_equal_length
 If true, rx and tx buffers must have the same length. More...
 

Detailed Description

Describes the capabilities of a SPI peripherals.

Definition at line 97 of file spi_api.h.

Field Documentation

◆ minimum_frequency

uint32_t minimum_frequency

Minimum frequency supported must be set by target device and it will be assessed during testing.

Definition at line 101 of file spi_api.h.

◆ maximum_frequency

uint32_t maximum_frequency

Maximum frequency supported must be set by target device and it will be assessed during testing.

Definition at line 105 of file spi_api.h.

◆ word_length

uint32_t word_length

Each bit represents the corresponding word length.

lsb => 1bit, msb => 32bit.

Definition at line 107 of file spi_api.h.

◆ slave_delay_between_symbols_ns

uint16_t slave_delay_between_symbols_ns

specifies required number of ns between transmission of successive symbols in slave mode.

Definition at line 108 of file spi_api.h.

◆ clk_modes

uint8_t clk_modes

specifies supported modes from spi_mode_t.

Each bit represents the corresponding mode.

Definition at line 109 of file spi_api.h.

◆ support_slave_mode

bool support_slave_mode

If true, the device can handle SPI slave mode using hardware management on the specified ssel pin.

Definition at line 110 of file spi_api.h.

◆ hw_cs_handle

bool hw_cs_handle

If true, in SPI master mode Chip Select can be handled by hardware.

Definition at line 111 of file spi_api.h.

◆ async_mode

bool async_mode

If true, in async mode is supported.

Definition at line 112 of file spi_api.h.

◆ tx_rx_buffers_equal_length

bool tx_rx_buffers_equal_length

If true, rx and tx buffers must have the same length.

Definition at line 113 of file spi_api.h.