2021-03-14 07:00:33 +00:00
|
|
|
#ifndef __USER_SPI_DRIVER_H
|
|
|
|
#define __USER_SPI_DRIVER_H
|
|
|
|
|
2021-03-14 08:24:55 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2021-03-14 07:00:33 +00:00
|
|
|
typedef enum {
|
2021-03-14 08:24:55 +00:00
|
|
|
USER_SPI_OK,
|
|
|
|
USER_SPI_ERROR
|
2021-03-14 07:00:33 +00:00
|
|
|
} user_spi_ret_t;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int spidev_fd;
|
2021-03-14 08:24:55 +00:00
|
|
|
} user_spi_driver_t;
|
|
|
|
|
|
|
|
#endif
|