Core
Loading...
Searching...
No Matches
spi.h
1#ifndef CORE_SPI_H
2#define CORE_SPI_H
3
4#include <stdint.h>
5#include <stdbool.h>
6#include <stm32g4xx_hal.h>
7
8
9bool core_SPI_init(SPI_TypeDef *spi, GPIO_TypeDef *cs_port, uint16_t cs_pin);
10bool core_SPI_read_write(SPI_TypeDef *spi, uint8_t *txbuf, uint32_t txbuflen, uint8_t *rxbuf, uint32_t rxbuflen);
11bool core_SPI_start(SPI_TypeDef *spi);
12bool core_SPI_stop(SPI_TypeDef *spi);
13
14#endif