Dawn Framework 1.0
Universal data acquisition framework for embedded systems
adc.hxx
1// dawn/include/dawn/porting/adc.hxx
2//
3// SPDX-License-Identifier: Apache-2.0
4//
5
6#pragma once
7
8#include <cstdint>
9#include <cstdio>
10
11#include "dawn/porting/nuttx/adc.hxx"
12
13namespace dawn
14{
15namespace porting
16{
23{
24 int32_t data; // Do not read channel !
25};
26
27} // namespace porting
28} // namespace dawn
29
37int adc_open(const char *path);
38
45void adc_close(int fd);
46
54int adc_get_nchans(int fd);
55
63int adc_start(int fd);
64
72int adc_stop(int fd);
73
82int adc_set_timer_freq(int fd, uint32_t freq_hz);
83
91int adc_get_samples_count(int fd);
92
102int adc_read(int fd, dawn::porting::adc_read_s *adc, size_t len);
Out-of-tree user-extension hooks for Dawn.
Definition bindable.hxx:13
ADC read data.
Definition adc.hxx:23