Aruna
FT_I2C.h
Go to the documentation of this file.
1
//
2
// Created by noeel on 19-04-21.
3
//
4
5
#ifndef ARUNA_FT_I2C_H
6
#define ARUNA_FT_I2C_H
7
#ifdef ARUNA_ENABLE_FTDI
8
#include <stddef.h>
9
#include <mpsse.h>
10
#include "
aruna/log.h
"
11
#include "
aruna/driver/I2C_master.h
"
12
13
namespace
aruna::driver
{
14
class
FT_I2C :
public
I2C_master {
15
private
:
16
static
log::channel_t
log
;
17
mpsse_context* mpsse;
18
19
aruna::err_t
_write(uint8_t address, uint8_t reg, uint8_t *data,
size_t
data_size)
override
;
20
21
aruna::err_t
_read(uint8_t address, uint8_t reg, uint8_t *buffer,
size_t
buffer_size)
override
;
22
public
:
23
24
err_t
startup_error =
err_t::NOT_STARTED
;
25
FT_I2C(
struct
mpsse_context * mpsse);
26
~FT_I2C();
27
28
};
29
}
30
31
#endif //ARUNA_ENABLE_FTDI
32
#endif //ARUNA_FT_I2C_H
aruna::comm::anonymous_namespace{comm.cpp}::log
static log::channel_t * log
Definition:
comm.cpp:23
aruna::driver
Definition:
ADC.cpp:11
aruna::err_t
err_t
Definition:
arunaTypes.h:20
I2C_master.h
aruna::err_t::NOT_STARTED
log.h
include
aruna
driver
port
cross_platform
FT_I2C.h
Generated by
1.8.13