Dawn Framework 1.0
Universal data acquisition framework for embedded systems
encoder.hxx
1// dawn/include/dawn/porting/encoder.hxx
2//
3// SPDX-License-Identifier: Apache-2.0
4//
5
6#pragma once
7
8#include <cstdint>
9
10#include "dawn/porting/nuttx/encoder.hxx"
11
12namespace dawn
13{
14namespace porting
15{
22{
23 int32_t qenc_pos;
24 int32_t indx_pos;
25 int16_t indx_cnt;
26};
27
28} // namespace porting
29} // namespace dawn
30
38int encoder_open(const char *path);
39
46void encoder_close(int fd);
47
55int encoder_read_position(int fd, int32_t *pos);
56
64int encoder_read_index(int fd, dawn::porting::encoder_index_s *index);
65
72int encoder_reset(int fd);
73
81int encoder_set_posmax(int fd, uint32_t posmax);
Out-of-tree user-extension hooks for Dawn.
Definition bindable.hxx:13
Quadrature encoder index sample.
Definition encoder.hxx:22