BSP_SWITCH_STATE BSP_SwitchStateGet (BSP_SWITCH bspSwitch) { if (bspSwitch == PBTN_1 || bspSwitch == PBTN_2) { return (PLIB_PORTS_PinGet(PORTS_ID_0, PORT_CHANNEL_A, bspSwitch-4)); } else { return (PLIB_PORTS_PinGet(PORTS_ID_0, PORT_CHANNEL_E, bspSwitch)); } }
bool SYS_PORTS_PinRead ( PORTS_MODULE_ID index, PORTS_CHANNEL channel, PORTS_BIT_POS bitPos ) { return PLIB_PORTS_PinGet ( index, channel, bitPos ); }
BSP_SWITCH_STATE BSP_SWITCH_StateGet( BSP_SWITCH_CHANNEL bspSwitchChannel, BSP_SWITCH_PORT bspSwitchPort ) { return (PLIB_PORTS_PinGet(PORTS_ID_0, bspSwitchChannel, bspSwitchPort)); }
BSP_SWITCH_STATE BSP_SwitchStateGet( BSP_SWITCH bspSwitch ) { return ( PLIB_PORTS_PinGet(PORTS_ID_0, PORT_CHANNEL_B, bspSwitch) ); }