This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_encoder_pru_read

Function Documentation

int rc_encoder_pru_read(void)

Reads the current position of encoder channel 4.

This is a signed 32-bit integer that wraps around if the position is allowed to read +- 2^31


The current position (signed 32-bit integer) or -1 and prints an error message is there is a problem.