10 namespace microphone {
21 virtual void start() = 0;
22 virtual void stop() = 0;
26 virtual size_t read(int16_t *buf,
size_t len) = 0;
void add_data_callback(std::function< void(const std::vector< int16_t > &)> &&data_callback)
CallbackManager< void(const std::vector< int16_t > &)> data_callbacks_
virtual size_t read(int16_t *buf, size_t len)=0
Implementation of SPI Controller mode.