6#include <stm32g4xx_hal.h>
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);