This commit is contained in:
2026-08-31 22:43:51 -04:00
commit c87308caca
521 changed files with 141326 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
/*
* File: adc.h
* Author: thebears
*
* Created on December 10, 2021, 10:13 PM
*/
#ifndef ADC_H
#define ADC_H
#include <avr/io.h>
#include <stdint.h>
#include <stdbool.h>
#ifdef __cplusplus
extern "C" {
#endif
int8_t adc_Initialize();
void adc_Enable();
void adc_Disable();
void adc_StartConversion(uint8_t channel);
bool adc_IsConversionDone();
uint16_t adc_GetConversionResult(void);
uint16_t adc_GetConversion(uint8_t channel);
#ifdef __cplusplus
}
#endif
#endif /* ADC_H */