Added i2c tools

This commit is contained in:
Sebastien Leclerc
2019-06-25 11:53:12 -04:00
parent 463d66f6ac
commit 375a5aec2a
13 changed files with 519 additions and 54 deletions

View File

@@ -613,14 +613,7 @@ uint8_t get_bytes_per_frame(output_format fmt)
assert(bpf>0);
return bpf;
}
/****************************************************************************************
* Wait for a duration based on a frame count
*/
extern struct outputstate output;
void wait_for_frames(size_t frames, uint8_t pct)
{
usleep((1000* frames/output.current_sample_rate*pct/100) );
}
char * get_output_state_desc(output_state state){
switch (state) {
case OUTPUT_OFF: