ASCEND Flight Software
Loading...
Searching...
No Matches
PCF8523Sensor.h
Go to the documentation of this file.
1#ifndef PCF8523SENSOR_H
2#define PCF8523SENSOR_H
3
4#include <RTClib.h>
5
6#include "Sensor.h"
7
13class PCF8523Sensor : public Sensor {
14 private:
15 RTC_PCF8523 rtc;
16
17 public:
19 PCF8523Sensor(unsigned long minimum_period);
20
21 bool verify() override;
22 String decodeToCSV(uint8_t*& packet) override;
23 void readDataPacket(uint8_t*& packet) override;
24 String readData() override;
25 void calibrate();
26};
27
28#endif // PCF8523SENSOR_H
int attempt_number
Definition Device.h:19
Implementation of the PCF8523 sensor.
Definition PCF8523Sensor.h:13
PCF8523Sensor()
Definition PCF8523Sensor.cpp:3
String decodeToCSV(uint8_t *&packet) override
Decode the packet data and returns it in CSV format.
Definition PCF8523Sensor.cpp:63
String readData() override
Returns the collected data from the sensor in CSV format.
Definition PCF8523Sensor.cpp:14
RTC_PCF8523 rtc
Definition PCF8523Sensor.h:15
bool verify() override
Verifies if the sensor is connected and working.
Definition PCF8523Sensor.cpp:8
void readDataPacket(uint8_t *&packet) override
Reads sensor data and appends it to the packet byte array.
Definition PCF8523Sensor.cpp:37
void calibrate()
Definition PCF8523Sensor.cpp:22
Parent class for sensor objects.
Definition Sensor.h:13
unsigned long minimum_period
Definition Sensor.h:15