Dawn Framework
1.0
Universal data acquisition framework for embedded systems
dawn
include
dawn
porting
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
13
namespace
dawn
14
{
15
namespace
porting
16
{
22
struct
adc_read_s
23
{
24
int32_t data;
// Do not read channel !
25
};
26
27
}
// namespace porting
28
}
// namespace dawn
29
37
int
adc_open(
const
char
*path);
38
45
void
adc_close(
int
fd);
46
54
int
adc_get_nchans(
int
fd);
55
63
int
adc_start(
int
fd);
64
72
int
adc_stop(
int
fd);
73
82
int
adc_set_timer_freq(
int
fd, uint32_t freq_hz);
83
91
int
adc_get_samples_count(
int
fd);
92
102
int
adc_read(
int
fd,
dawn::porting::adc_read_s
*adc,
size_t
len);
dawn
Out-of-tree user-extension hooks for Dawn.
Definition
bindable.hxx:13
dawn::porting::adc_read_s
ADC read data.
Definition
adc.hxx:23
Generated by
1.9.8