61 #include "em_device.h" 101 #if DEBUG_DBPRINT == 1 102 dbcrit(
"Cable broken! Sending the data ...");
119 #if DEBUG_DBPRINT == 1 120 dbcrit(
"Cable broken but no longer sending the data");
129 #if DEBUG_DBPRINT == 1 130 dbinfo(
"Cable still intact");
160 CMU_ClockEnable(cmuClock_HFPER,
true);
161 CMU_ClockEnable(cmuClock_GPIO,
true);
static bool checkCable_internal(void)
Method to check if the wire is broken.
Definitions of the custom data-types used.
void dbinfo(char *message)
Print an info string (char array) to USARTx and go to the next line.
Cable checking functionality.
void sendMeasurements(MeasurementData_t data)
Send measured battery voltages and internal and external temperatures to the cloud using LoRaWAN...
void sendCableBroken(bool cableBroken)
Send a packet to the cloud using LoRaWAN to indicate that the cable is broken.
void disableLoRaWAN(void)
Disable LoRaWAN functionality.
The pin definitions for the regular and custom Happy Gecko board.
void initLoRaWAN(void)
Initialize LoRaWAN functionality.
Enable or disable printing to UART with dbprint.
uint8_t cableBrokenSendTimes
bool checkCable(MeasurementData_t data)
Method to check if the wire is broken.
void dbcrit(char *message)
Print a critical error string (char array) in red to USARTx and go to the next line.