当前位置:网站首页>SPI - send 16 bit and 8-bit data
SPI - send 16 bit and 8-bit data
2022-07-24 07:11:00 【W_ oilpicture】
Preface
Life is a journey , I am also a pedestrian .
SPI 8 Bit data transfer

unsigned char code = 0xcf;
HAL_SPI_Transmit(&hspi1,code,1,0xffff);
SPI 16 Bit data transfer

- Method 1 : Change the number of digits to
16position , Call the send function :
uint16_t code[1] = {
0xcfff};
HAL_SPI_Transmit(&hspi1, (uint8_t *)code, 1, 0xffff);
- Method 2 : Configure to
8position Pattern , Then send two bits of data as an array :
unsigned char code[2] = {
0xcf, 0xff};
HAL_SPI_Transmit(&hspi1, code, 2, 0xffff);
边栏推荐
- 上传excel文件
- Input the names of 10 people and output them in descending order
- 单点登录的三种实现方式
- Aggregated new ecological model - sharing purchase, membership and reward system
- 【时序逻辑电路】——寄存器
- MySql的DDL和DML和DQL的基本语法
- STM32H750VBT6驱动程控增益放大模块PGA113——基于CubeMX的Hal库
- 【Word】如何生成左侧的索引目录
- avaScript的流程控制语句
- [waveform / signal generator] Based on stc1524k32s4 for C on Keil
猜你喜欢

Redis 分片集群

SPI——发送16位和8位数据

变量和数据类型(04)完结

第二部分—C语言提高篇_4. 二级指针

第一部分—C语言基础篇_11. 综合项目-贪吃蛇

Take you step by step to learn C (one)

Practice of online problem feedback module (12): realize image deletion function

安全工具之hackingtool
![[USB voltmeter and ammeter] Based on stm32f103c8t6 for Arduino](/img/5f/40e4e144a628ef1aa38ab536b40366.png)
[USB voltmeter and ammeter] Based on stm32f103c8t6 for Arduino

tensorflow scatter_ Nd function
随机推荐
FPGA实现AXI4总线的读写
先爱自己,再爱别人。
Job search memo
论文阅读:HarDNet: A Low Memory Traffic Network
电子商务时代,企业社交电商转型要做什么?
Create WPF project
Libevent multithreaded server + client source code
C language from entry to soil (I)
第二部分—C语言提高篇_4. 二级指针
上传excel文件
Chapter007-FPGA学习之IIC总线EEPROM读取
变量和数据类型(03)
MySQL automatic generation creation time and update time
ROS starts non native nodes
Take you step by step to learn C (one)
Filter 过滤器
变量和数据类型(04)完结
不要太在意别人对你的看法
2022-07-22 mysql/stonedb parallel hashjoin memory usage analysis
Redis sentinel mechanism