ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
Loading...
Searching...
No Matches
communication.h File Reference

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.
 

Detailed Description

Communication interface for the controller.

Author
John Madden jmadd.nosp@m.en17.nosp@m.3@pm..nosp@m.me
Date
2024-10-13

This file implements the i2c communication interface for the controller module.

Definition in file communication.h.