76 #endif // RC_ENCODER_H int rc_encoder_read(int ch)
Reads the current position of an encoder channel.
int rc_encoder_cleanup(void)
Stops the encoder counters and closes file descriptors. This is not strictly necessary but is recomme...
int rc_encoder_write(int ch, int pos)
Sets the current position of an eQEP encoder channel. Usually for resetting a counter to 0 but can se...
int rc_encoder_init(void)
Initializes counters for channels 1-4.