spi_software: Implementation of software spi

Signed-off-by: Matt Janus <FragginRight@variabl.es>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-02-09 12:22:10 -05:00
parent 090cd930d9
commit 98ed462865
6 changed files with 200 additions and 20 deletions

11
src/spi_software.h Normal file
View file

@ -0,0 +1,11 @@
#ifndef __SPI_SOFTWARE_H
#define __SPI_SOFTWARE_H
#include <stdint.h> // uint8_t
struct spi_software *spi_software_oid_lookup(uint8_t oid);
void spi_software_prepare(struct spi_software *ss);
void spi_software_transfer(struct spi_software *ss, uint8_t receive_data
, uint8_t len, uint8_t *data);
#endif // spi_software.h