B3M38SPD seminar project - beehive monitor with LoRa reporting
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
spd-lorabees/Src/audio.h

25 lines
478 B

/*
* audio.h
*
* Created on: Dec 31, 2017
* Author: ondra
*/
#ifndef SRC_AUDIO_H_
#define SRC_AUDIO_H_
#include <stdint.h>
#include <stdbool.h>
/** A detected peak struct */
struct peak {
float position; // precise position, unit is 1 bin
float magnitude; // precise magnitude
float weight; // sorting weight (internal use)
};
void audio_capture(struct peak *peaks, uint32_t pcount, float *noise, float *totalpower) ;
#endif /* SRC_AUDIO_H_ */