i2csender.h 348 B

123456789101112131415161718192021
  1. #pragma once
  2. #include <furi.h>
  3. #include <furi_hal.h>
  4. #include "i2cscanner.h"
  5. typedef struct {
  6. uint8_t address_idx;
  7. uint8_t value;
  8. uint8_t recv[2];
  9. bool must_send;
  10. bool sended;
  11. bool error;
  12. i2cScanner* scanner;
  13. } i2cSender;
  14. void i2c_send();
  15. i2cSender* i2c_sender_alloc();
  16. void i2c_sender_free(i2cSender* i2c_sender);