|
ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
|
Communication interface for the controller. More...
#include <stdint.h>#include "../proto/controller.pb.h"Go to the source code of this file.
Data Structures | |
| struct | Buffer |
| enum | ControllerStatus { CONTROLLER_SUCCESS = 0 , CONTROLLER_ERROR , CONTROLLER_TIMEOUT , CONTROLLER_MUTEX } |
| ControllerStatus | ControllerTransmit (void) |
| Send bytes to esp32. | |
| ControllerStatus | ControllerReceive (void) |
| Receive bytes from esp32. | |
| ControllerStatus | ControllerTransaction (void) |
| Send message and receive response from esp32. | |
| Buffer * | ControllerTx (void) |
| Get reference to transmit buffer. | |
| Buffer * | ControllerRx (void) |
| Get reference to receive buffer. | |
Communication interface for the controller.
This file implements the i2c communication interface for the controller module.
Definition in file communication.h.