bf16-device.h 319 B

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