JM9 XRCU Board 0.1.2
Libraries API Reference
Loading...
Searching...
No Matches
Ain.h
Go to the documentation of this file.
1
8
9#ifdef ARDUINO_XRCU_HWV10001
10
11#ifndef AIN_H
12#define AIN_H
13
14#include <Arduino.h>
15
22uint16_t analog_read_raw (const uint8_t channel);
23
29uint16_t analog_read_threshold (const uint8_t channel);
30
37uint16_t analog_read_mapped (const uint8_t channel);
38
46bool analog_read_digital (const uint8_t channel);
47
54bool get_analog_reverse_flag (const uint8_t channel);
55
62void set_analog_reverse_flag (const uint8_t channel, const bool reverse_flag);
63
69void analog_start_cal ();
70
77bool analog_single_cal ();
78
84void analog_end_cal ();
85
86#endif // #ifndef AIN_H
87
88#endif // #ifdef ARDUINO_XRCU_HWV10001
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.