WE310F5  39.00.000
M2MB_SPI_CFG_T Struct Reference

#include <m2mb_spi.h>

Data Fields

M2MB_SPI_SHIFT_MODE_T spi_mode
 
M2MB_SPI_CS_POLARITY_T cs_polarity
 
M2MB_SPI_CS_MODE_T cs_mode
 
M2MB_SPI_BYTE_ORDER_T endianness
 
m2mb_spi_ind_callback callback_fn
 
HANDLE callback_ctxt
 
UINT32 clk_freq_Hz
 
UINT8 bits_per_word
 
UINT8 cs_clk_delay_cycles
 
UINT8 inter_word_delay_cycles
 
BOOLEAN loopback_mode
 
UINT16 buffer_size
 
M2MB_SPI_ID_t accessId
 
M2MB_SPI_CLK_MODE_T clk_mode
 
M2MB_SPI_CALLBACK_FN_T callback_fn
 
UINT32 bits_per_word
 
UINT32 cs_clk_delay_cycles
 
UINT32 inter_word_delay_cycles
 
UINT32 loopback_mode
 

Detailed Description

Definition at line 133 of file m2mb_spi.h.

Field Documentation

◆ accessId

M2MB_SPI_ID_t accessId

access ID

Definition at line 163 of file m2mb_spi_master.h.

◆ bits_per_word [1/2]

UINT8 bits_per_word

Definition at line 142 of file m2mb_spi.h.

◆ bits_per_word [2/2]

UINT32 bits_per_word

bits per word; any value from 3 to 31

Definition at line 172 of file m2mb_spi_master.h.

◆ buffer_size

UINT16 buffer_size

Definition at line 147 of file m2mb_spi.h.

◆ callback_ctxt

HANDLE callback_ctxt

Pointer to a client object that will be returned as an argument to callback_fn

Definition at line 140 of file m2mb_spi.h.

◆ callback_fn [1/2]

m2mb_spi_ind_callback callback_fn

Definition at line 139 of file m2mb_spi.h.

◆ callback_fn [2/2]

Callback function; if NULL, transfer operates in synchronous mode

Definition at line 169 of file m2mb_spi_master.h.

◆ clk_freq_Hz

UINT32 clk_freq_Hz

Host sets the SPI clock frequency closest (>=) to the requested frequency. Must be at least 960000

Definition at line 141 of file m2mb_spi.h.

◆ clk_mode

CLK mode

Definition at line 167 of file m2mb_spi_master.h.

◆ cs_clk_delay_cycles [1/2]

UINT8 cs_clk_delay_cycles

Definition at line 143 of file m2mb_spi.h.

◆ cs_clk_delay_cycles [2/2]

UINT32 cs_clk_delay_cycles

Number of clock cycles to wait after asserting CS before starting transfer

Definition at line 173 of file m2mb_spi_master.h.

◆ cs_mode

CS mode

Definition at line 137 of file m2mb_spi.h.

◆ cs_polarity

CS polarity

Definition at line 136 of file m2mb_spi.h.

◆ endianness

Endianness

Definition at line 138 of file m2mb_spi.h.

◆ inter_word_delay_cycles [1/2]

UINT8 inter_word_delay_cycles

Definition at line 144 of file m2mb_spi.h.

◆ inter_word_delay_cycles [2/2]

UINT32 inter_word_delay_cycles

Number of clock cycles to wait between SPI words

Definition at line 174 of file m2mb_spi_master.h.

◆ loopback_mode [1/2]

BOOLEAN loopback_mode

Definition at line 145 of file m2mb_spi.h.

◆ loopback_mode [2/2]

UINT32 loopback_mode

Normally 0. If set, the SPI controller will enable Loopback mode used primarily for testing

Definition at line 175 of file m2mb_spi_master.h.

◆ spi_mode

Shift mode

Definition at line 135 of file m2mb_spi.h.


The documentation for this struct was generated from the following files: