JM9 XRCU Board 0.1.0
Libraries API Reference
Loading...
Searching...
No Matches
Ain.h
Go to the documentation of this file.
1
12
13#include <Arduino.h>
14#include <Ain.h>
15
16#ifndef AIN_H
17#define AIN_H
18
25uint16_t analog_read_raw (const uint8_t channel);
26
32uint16_t analog_read_threshold (const uint8_t channel);
33
40uint16_t analog_read_mapped (const uint8_t channel);
41
49bool analog_read_digital (const uint8_t channel);
50
57bool get_analog_reverse_flag (const uint8_t channel);
58
65void set_analog_reverse_flag (const uint8_t channel, const bool reverse_flag);
66
73
81
88
89#endif // #ifndef AIN_H
bool analog_read_digital(const uint8_t channel)
Reads the analog value in boolean.
uint16_t analog_read_mapped(const uint8_t channel)
Reads the mapped analog value.
void analog_start_cal()
Starts a new calibration of all analog channels.
bool analog_single_cal()
Processes 1 cycle of calibration for all analog channels.
uint16_t analog_read_threshold(const uint8_t channel)
Reads the white/black threshold.
uint16_t analog_read_raw(const uint8_t channel)
Reads the raw analog value.
void analog_end_cal()
Ends the calibration of all analog channels and store the data back into EEPROM.
void set_analog_reverse_flag(const uint8_t channel, const bool reverse_flag)
Sets the analog reverse direction flag.
bool get_analog_reverse_flag(const uint8_t channel)
Gets the analog reverse direction flag.