d_quadEnc.h
Go to the documentation of this file.
1 /*
2 MIT LICENSE
3 
4 Copyright 2014-2019 Inertial Sense, Inc. - http://inertialsense.com
5 
6 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions :
7 
8 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
9 
10 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT, IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11 */
12 
13 
14 #ifndef D_QUADENC_H_
15 #define D_QUADENC_H_
16 
17 #define QE_LEFT_WHEEL 0
18 #define QE_RIGHT_WHEEL 1
19 
20 #ifdef __cplusplus
21  extern "C" {
22 #endif
23 
27 void quadEncInit(void);
28 
32 void quadEncReadPositionAll(int *pos0, bool *dir0, int *pos1, bool *dir1);
33 void quadEncReadSpeedAll(uint32_t *speed0, uint32_t *speed1);
34 
35 void test_quad_encoders(void);
36 
37 #ifdef __cplusplus
38  }
39 #endif
40 
41 #endif /* D_QUADENC_H_ */
void quadEncInit(void)
Initialize quadrature encoder driver.
Definition: d_quadEnc.c:150
void quadEncReadPositionAll(int *pos0, bool *dir0, int *pos1, bool *dir1)
Reads the current position of the encoders.
Definition: d_quadEnc.c:181
void quadEncReadSpeedAll(uint32_t *speed0, uint32_t *speed1)
Definition: d_quadEnc.c:198
void test_quad_encoders(void)
Definition: d_quadEnc.c:217


inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:04