上一页 1 ··· 225 226 227 228 229 230 231 232 233 ··· 617 下一页

2022年9月6日

摘要: void vSetSSN(int value) { // GPIO_CS // gpio_set_direction(GPIO_CS, GPIO_MODE_INPUT); //写这个或下一个 // 1为高电平,0为低电平 // gpio_set_level(GPIO_CS, value); gpio 阅读全文
posted @ 2022-09-06 01:40 lydstory 阅读(271) 评论(0) 推荐(0)
摘要: /* SPI Slave example, sender (uses SPI master driver) This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by 阅读全文
posted @ 2022-09-06 01:34 lydstory 阅读(27) 评论(0) 推荐(0)
摘要: SPI(Serial Periphral Interface)最早是由摩托罗拉公司设计并实现,它是一种高速的、全双工的通信总线,采用主机(Master)-从机(Slave)的方式进行通信。SPI占用芯片的四个引脚,也就是说采用四条信号线来进行通信。这四条线分别是:主设备输入与从设备输出线(Maste 阅读全文
posted @ 2022-09-06 01:18 lydstory 阅读(176) 评论(0) 推荐(0)
摘要: /* SPI Slave example, sender (uses SPI master driver) This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by 阅读全文
posted @ 2022-09-06 01:06 lydstory 阅读(60) 评论(0) 推荐(0)
摘要: uint8_t cmd[10] = {0x55, 0x00, 0xB0, 0x99, 0x00, 0x00, 0x02, 0x00, 0x08, 0x00}; cmd[9] = getLRCx(&cmd[1], 8); char sendbuf[10]; char recvbuf[10]; memc 阅读全文
posted @ 2022-09-06 00:46 lydstory 阅读(473) 评论(0) 推荐(0)
摘要: uint8_t cmd2[1] = {0x00}; char sendbuf2[1]; char recvbuf2[1]; memcpy(sendbuf2, cmd2, 1); /* spi_transaction_t SPITransaction2; memset(&SPITransaction2 阅读全文
posted @ 2022-09-06 00:32 lydstory 阅读(93) 评论(0) 推荐(0)
摘要: uint8_t cmd[10] = {0x55, 0x00, 0xB0, 0x99, 0x00, 0x00, 0x02, 0x00, 0x08, 0x00}; cmd[9] = getLRCx(&cmd[1], 8); char sendbuf[10]; char recvbuf[10]; memc 阅读全文
posted @ 2022-09-06 00:21 lydstory 阅读(184) 评论(0) 推荐(0)

2022年9月5日

摘要: #define GPIO_MOSI 35 #define GPIO_MISO 37 #define GPIO_SCLK 36 #define RCV_HOST SPI3_HOST #include <stdio.h> #include <string.h> #include "freertos/Fr 阅读全文
posted @ 2022-09-05 23:33 lydstory 阅读(212) 评论(0) 推荐(0)
摘要: ESP-IDF SPI踩坑日记 – 梦程小站 (openthing.cn) 半双工设置 提示以上错误.... 阅读全文
posted @ 2022-09-05 18:32 lydstory 阅读(36) 评论(0) 推荐(0)
摘要: /* SPI Slave example, sender (uses SPI master driver) This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by 阅读全文
posted @ 2022-09-05 18:25 lydstory 阅读(86) 评论(0) 推荐(0)
上一页 1 ··· 225 226 227 228 229 230 231 232 233 ··· 617 下一页

导航