Statistics
| Branch: | Tag: | Revision:

amiro-os / include / amiro / bus / i2c / I2CParams.hpp @ 58fe0e0b

History | View | Annotate | Download (480 Bytes)

1 58fe0e0b Thomas Schöpping
/*
2
 * I2CParams.hpp
3
 *
4
 *  Created on: Jun 10, 2014
5
 *      Author: Robert ABEL
6
 */
7
8
#ifndef I2CPARAMS_HPP_
9
#define I2CPARAMS_HPP_
10
11
#include <ch.hpp>
12
#include <hal.h>
13
14
namespace amiro {
15
16
struct I2CTxParams {
17
18
  i2caddr_t      addr;
19
  const uint8_t *txbuf;
20
  size_t         txbytes;
21
  uint8_t       *rxbuf;
22
  size_t         rxbytes;
23
24
};
25
26
struct I2CRxParams {
27
28
  i2caddr_t      addr;
29
  uint8_t       *rxbuf;
30
  size_t         rxbytes;
31
32
};
33
34
} /* amiro */
35
36
#endif /* I2CPARAMS_HPP_ */