WL865E4-P  36.07.001
M2MB_SPI_CFG_T Struct Reference

#include <m2mb_spi_master.h>

Data Fields

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

Detailed Description

Definition at line 161 of file m2mb_spi_master.h.

Field Documentation

◆ accessId

M2MB_SPI_ID_t accessId

access ID

Definition at line 163 of file m2mb_spi_master.h.

◆ bits_per_word

UINT32 bits_per_word

bits per word; any value from 3 to 31

Definition at line 172 of file m2mb_spi_master.h.

◆ callback_ctxt

HANDLE callback_ctxt

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

Definition at line 170 of file m2mb_spi_master.h.

◆ callback_fn

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 171 of file m2mb_spi_master.h.

◆ clk_mode

CLK mode

Definition at line 167 of file m2mb_spi_master.h.

◆ cs_clk_delay_cycles

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 166 of file m2mb_spi_master.h.

◆ cs_polarity

CS polarity

Definition at line 165 of file m2mb_spi_master.h.

◆ endianness

Endianness

Definition at line 168 of file m2mb_spi_master.h.

◆ inter_word_delay_cycles

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

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 164 of file m2mb_spi_master.h.


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