/ bf16-device.h
bf16-device.h
1 #ifndef BF16_DEVICE_H 2 #define BF16_DEVICE_H 3 4 #include <stdint.h> 5 6 typedef struct { 7 char *device; 8 int fd; 9 10 uint8_t mode; 11 uint8_t bits; 12 uint32_t speed; 13 uint16_t delay; 14 15 uint16_t datalen; 16 uint16_t size; 17 uint8_t *rx; 18 uint8_t *tx; 19 } device_t; 20 21 #endif /* BF16_DEVICE_H */