MCPcopy Create free account
hub / github.com/OpenEarable/open-earable / PDM_Sensor

Class PDM_Sensor

src/custom_sensor/PDM_Sensor.h:7–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "SensorID_Earable.h"
6
7class PDM_Sensor : public SensorInterface {
8public:
9 PDM_Sensor();
10
11 void start() override;
12 void end() override;
13
14 void setBuffer(uint8_t * buffer);
15 void get_data(int ID, byte * data) override;
16
17 int get_sensor_count() override;
18
19 static const int sensor_count = 1;
20private:
21 bool available = false;
22
23 uint8_t * _buffer;
24
25 //PDM_MIC
26
27 //int16_t data[16];
28};
29
30extern PDM_Sensor pdm_sensor;
31

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected