Where can I get the pin in "hal.gpio->pinMode(pin, value);"

Hi,
I want to add code “hal.gpio->pinMode(pin, value);” into ArduCopter,but I can’t find the “pin”.So I want to know where to find the pin.
If you can help me, that’d be awesome. Thanks!