mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-25 03:29:58 -07:00
i2c update
This commit is contained in:
21
applications/plugins/flipper_i2ctools/i2csender.h
Normal file
21
applications/plugins/flipper_i2ctools/i2csender.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#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);
|
||||
Reference in New Issue
Block a user