| 5 | #include "SensorID_Earable.h" |
| 6 | |
| 7 | class PDM_Sensor : public SensorInterface { |
| 8 | public: |
| 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; |
| 20 | private: |
| 21 | bool available = false; |
| 22 | |
| 23 | uint8_t * _buffer; |
| 24 | |
| 25 | //PDM_MIC |
| 26 | |
| 27 | //int16_t data[16]; |
| 28 | }; |
| 29 | |
| 30 | extern PDM_Sensor pdm_sensor; |
| 31 |
nothing calls this directly
no outgoing calls
no test coverage detected