Function rc_encoder_eqep_init¶
Defined in File encoder_eqep.h
Function Documentation¶
-
int rc_encoder_eqep_init(void)¶
Initializes the eQEP encoder counters for channels 1-3.
This also resets the encoder position to 0 so the first position read is consistent. Note this does NOT initialize the PRU-accelerated encoder counter on channel 4. To use the 4th channel you must use <rc/encoder_pru.h>
- Returns
0 on success or -1 on failure