MT2523 API Reference  LinkIt SDK v4
hal_spi_master_chip_select_timing_t Struct Reference

SPI master chip select configure structure. More...

#include <hal_spi_master.h>

Data Fields

uint32_t chip_select_setup_count
 SPI master chip select setup count setting. More...
 
uint32_t chip_select_hold_count
 SPI master chip select hold count setting. More...
 
uint32_t chip_select_idle_count
 SPI master chip select idle count setting. More...
 

Detailed Description

SPI master chip select configure structure.

Field Documentation

uint32_t chip_select_hold_count

SPI master chip select hold count setting.

Unit in count of SPI base clock. Range(0~32767). The chip select hold time is (cs_hold_count+1)*CLK_PERIOD.

uint32_t chip_select_idle_count

SPI master chip select idle count setting.

Unit in count of SPI base clock. Range(0~255). The chip select idle time between consecutive transaction is (cs_idle_count+1)*CLK_PERIOD.

uint32_t chip_select_setup_count

SPI master chip select setup count setting.

Unit in count of SPI base clock. Range(0~32767). The chip select setup time is (cs_setup_count+1)*CLK_PERIOD, where CLK_PERIOD is the cycle time of the clock the SPI engine adopts.


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