34 #include "../hsk_isr/hsk_isr.isr" 41 #define ADC_RESOLUTION_10 0 46 #define ADC_RESOLUTION_8 1 73 void hsk_adc_init(ubyte resolution, uword __xdata convTime);
91 #define hsk_adc_open hsk_adc_open10 102 uword *
const target);
112 ubyte *
const target);
163 #define hsk_adc_warmup hsk_adc_warmup10 void hsk_adc_init(ubyte resolution, uword convTime)
Initialize the AD conversion.
Definition: hsk_adc.c:198
bool hsk_adc_service(void)
A maintenance function that takes care of keeping AD conversions going.
Definition: hsk_adc.c:401
ubyte hsk_adc_channel
Typedef for ADC channel ids.
Definition: hsk_adc.h:51
void hsk_adc_open8(const hsk_adc_channel channel, ubyte *const target)
Open the given ADC channel in 8 bit mode.
Definition: hsk_adc.c:347
void hsk_adc_close(const hsk_adc_channel channel)
Close the given ADC channel.
Definition: hsk_adc.c:372
void hsk_adc_warmup10(void)
Warm up 10 bit AD conversion.
Definition: hsk_adc.c:458
void hsk_adc_open10(const hsk_adc_channel channel, uword *const target)
Open the given ADC channel in 10 bit mode.
Definition: hsk_adc.c:322
void hsk_adc_enable(void)
Turns on ADC conversion, if previously deactivated.
Definition: hsk_adc.c:293
bool hsk_adc_request(const hsk_adc_channel channel)
Requests an ADC for a specific channel.
Definition: hsk_adc.c:416
void hsk_adc_disable(void)
Turns off ADC conversion unit to converse power.
Definition: hsk_adc.c:300