driver-bigpic.h 443 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef BFG_DRIVER_BIGPIC_H
  2. #define BFG_DRIVER_BIGPIC_H
  3. #define BPM_BAUD 115200
  4. struct bigpic_identity
  5. {
  6. uint8_t version;
  7. char product[8];
  8. uint32_t serial;
  9. } __attribute__((packed));
  10. struct bigpic_state
  11. {
  12. uint8_t state;
  13. uint8_t switched;
  14. uint32_t nonce;
  15. } __attribute__((packed));
  16. struct bigpic_info
  17. {
  18. uint32_t baud;
  19. struct bigpic_identity id;
  20. char tx_buffer[45];
  21. char rx_buffer[1024];
  22. uint32_t rx_len;
  23. };
  24. #endif