Dawn Framework
1.0
Universal data acquisition framework for embedded systems
dawn
include
dawn
porting
pot.hxx
1
// dawn/include/dawn/porting/pot.hxx
2
//
3
// SPDX-License-Identifier: Apache-2.0
4
//
5
6
#pragma once
7
8
#include <cstdint>
9
10
#include "dawn/porting/nuttx/pot.hxx"
11
12
namespace
dawn
13
{
14
namespace
porting
15
{
21
struct
pot_rw_s
22
{
23
uint8_t wiper;
// wiper index
24
uint32_t val;
// wiper value
25
};
26
27
}
// namespace porting
28
29
}
// namespace dawn
30
38
int
pot_open(
const
char
*path);
39
46
void
pot_close(
int
fd);
47
56
int
pot_get_nwipers(
int
fd, uint8_t *nwipers);
57
66
int
pot_set_wiper(
int
fd,
dawn::porting::pot_rw_s
*pot);
67
76
int
pot_get_wiper(
int
fd,
dawn::porting::pot_rw_s
*pot);
dawn
Out-of-tree user-extension hooks for Dawn.
Definition
bindable.hxx:13
dawn::porting::pot_rw_s
POT wiper access data.
Definition
pot.hxx:22
Generated by
1.9.8