Master Thesis
V1.0
Research and Design of Sensor Node for NMSD Treatment
I2C.h
Go to the documentation of this file.
1
/*
2
* I2C.h
3
*
4
* Created on: Nov 18, 2019
5
* Author: jonac
6
*/
7
8
/***************************************************************************/
16
#ifndef I2C_H_
17
#define I2C_H_
18
19
20
21
#include <stdbool.h>
22
23
void
IIC_Init
(
void
);
24
void
IIC_Reset
(
void
);
25
bool
IIC_WriteBuffer
(uint8_t iicAddress, uint8_t * wBuffer, uint8_t wLength);
26
bool
IIC_ReadBuffer
(uint8_t iicAddress, uint8_t * rBuffer, uint8_t rLength);
27
bool
IIC_WriteReadBuffer
(uint8_t iicAddress, uint8_t * wBuffer, uint8_t wLength, uint8_t *rBuffer, uint8_t rLength);
28
void
IIC_Enable
(
bool
enable );
29
30
#endif
/* AMG8833_I2C_H_ */
IIC_WriteReadBuffer
bool IIC_WriteReadBuffer(uint8_t iicAddress, uint8_t *wBuffer, uint8_t wLength, uint8_t *rBuffer, uint8_t rLength)
I2C read/write functionality, to read and write at the same time.
Definition:
I2C.c:190
IIC_Reset
void IIC_Reset(void)
Resets the I2C interface.
Definition:
I2C.c:94
IIC_WriteBuffer
bool IIC_WriteBuffer(uint8_t iicAddress, uint8_t *wBuffer, uint8_t wLength)
I2C write functionality.
Definition:
I2C.c:112
IIC_Enable
void IIC_Enable(bool enable)
Definition:
I2C.c:71
IIC_Init
void IIC_Init(void)
Setup I2C functionality.
Definition:
I2C.c:52
IIC_ReadBuffer
bool IIC_ReadBuffer(uint8_t iicAddress, uint8_t *rBuffer, uint8_t rLength)
I2C read functionality.
Definition:
I2C.c:152
Comm
I2C.h
Generated by
1.8.16