1 Star 0 Fork 4.9K

平凡 / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
SpiMsg.md 4.75 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

SpiMsg

Overview

Related Modules:

SPI

Description:

Defines the custom SPI transfer message.

Since:

1.0

Summary

Data Fields

Variable Name

Description

wbuf

uint8_t * 

rbuf

uint8_t * 

len

uint32_t 

speed

uint32_t 

delayUs

uint16_t 

csChange

uint8_t 

Details

Field Documentation

csChange

uint8_t SpiMsg::csChange

Description:

Whether to switch off the CS before the next transfer when the current transfer has been completed. 1 indicates to switch off the CS; 0 indicates to switch on the CS.

delayUs

uint16_t SpiMsg::delayUs

Description:

Delay (in microseconds) before starting the next transfer. The value 0 indicates there is no delay between transfers.

len

uint32_t SpiMsg::len

Description:

Length of the read and write buffers. The read buffer and the write buffer have the same length.

rbuf

uint8_t* SpiMsg::rbuf

Description:

Address of the read buffer

speed

uint32_t SpiMsg::speed

Description:

Current message transfer speed

wbuf

uint8_t* SpiMsg::wbuf

Description:

Address of the write buffer

1
https://gitee.com/pingfan_vs_hs/docs.git
git@gitee.com:pingfan_vs_hs/docs.git
pingfan_vs_hs
docs
docs
master

搜索帮助