mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-23 19:23:09 +00:00
22 lines
348 B
C
22 lines
348 B
C
|
#pragma once
|
||
|
|
||
|
#include <furi.h>
|
||
|
#include <furi_hal.h>
|
||
|
#include "i2cscanner.h"
|
||
|
|
||
|
typedef struct {
|
||
|
uint8_t address_idx;
|
||
|
uint8_t value;
|
||
|
uint8_t recv[2];
|
||
|
bool must_send;
|
||
|
bool sended;
|
||
|
bool error;
|
||
|
|
||
|
i2cScanner* scanner;
|
||
|
} i2cSender;
|
||
|
|
||
|
void i2c_send();
|
||
|
|
||
|
i2cSender* i2c_sender_alloc();
|
||
|
void i2c_sender_free(i2cSender* i2c_sender);
|