|
ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
|
Go to the source code of this file.
Functions | |
| void | ControllerWakeupEsp32 (void) |
| Wakeup esp32 from deep sleep. | |
| 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. | |
| ControllerStatus ControllerReceive | ( | void | ) |
Receive bytes from esp32.
Definition at line 101 of file communication.c.
References CONTROLLER_ERROR, CONTROLLER_SUCCESS, Buffer::data, Buffer::len, and Buffer::size.
Referenced by ControllerTransaction().
| Buffer * ControllerRx | ( | void | ) |
Get reference to receive buffer.
Buffers needs to first be initialized with ControllerInit().
Definition at line 189 of file communication.c.
Referenced by ControllerDeinit(), ControllerInit(), ControllerMicroSDLog(), ControllerMicroSDSave(), ControllerMicroSDUserConfig(), ControllerUserConfigRequest(), ControllerUserConfigSend(), ControllerUserConfigStart(), IrrigationCommandTransaction(), PowerCommandTransaction(), and WiFiCommandTransaction().
| ControllerStatus ControllerTransaction | ( | void | ) |
Send message and receive response from esp32.
| timeout | Timeout duration in ms |
Definition at line 172 of file communication.c.
References CONTROLLER_SUCCESS, ControllerReceive(), and ControllerTransmit().
Referenced by ControllerMicroSDLog(), ControllerMicroSDSave(), ControllerMicroSDUserConfig(), ControllerUserConfigRequest(), ControllerUserConfigSend(), ControllerUserConfigStart(), IrrigationCommandTransaction(), PowerCommandTransaction(), and WiFiCommandTransaction().
| ControllerStatus ControllerTransmit | ( | void | ) |
Send bytes to esp32.
Definition at line 42 of file communication.c.
References CONTROLLER_ERROR, CONTROLLER_SUCCESS, ControllerWakeupEsp32(), Buffer::data, Buffer::len, and Buffer::size.
Referenced by ControllerTransaction().
| Buffer * ControllerTx | ( | void | ) |
Get reference to transmit buffer.
Buffers needs to first be initialized with ControllerInit().
Definition at line 187 of file communication.c.
Referenced by ControllerDeinit(), ControllerInit(), ControllerMicroSDLog(), ControllerMicroSDSave(), ControllerMicroSDUserConfig(), ControllerUserConfigRequest(), ControllerUserConfigSend(), ControllerUserConfigStart(), IrrigationCommandTransaction(), PowerCommandTransaction(), and WiFiCommandTransaction().
| void ControllerWakeupEsp32 | ( | void | ) |
Wakeup esp32 from deep sleep.
Starting with hardware version 2.2.2 there is an stm32 GPIO line connected the esp32 ext1 to wakeup the device from a deep sleep state.
Definition at line 191 of file communication.c.
Referenced by ControllerTransmit().