connecting and reading RC receiver on BBB

Sorry for the trivial question. I am trying to connect Spektrum DX7S RC via AR8000 to my BBB. On Arduino I used one of the PWM pins set it to Output and then the function PulseIn() for reading the receiver output.
For example:
pinMode(5, INPUT);
thro = pulseIn(5, HIGH, 25000);
How do I read the receiver on BBB using Adafruit library?