PEController BSP v4
Board Support Package for PEController from Taraz Technologies
 
Loading...
Searching...
No Matches

Functions

const digital_pin_tBSP_Din_SetAsIOPin (uint32_t pinNo)
 Sets the pin as input pin.
 
const digital_pin_tBSP_Din_SetPinAlternateFunction (uint32_t pinNo, uint32_t AlternateFunction)
 Selects the Alternate Input Functionality. To configure the input as GPIO use Din_SetAsIOPin(pinNo)
 
void BSP_Din_SetPortGPIO (void)
 Set the whole port as GPIO.
 
uint32_t BSP_Din_GetPortValue (void)
 Get the value of the Complete Input Port.
 
uint32_t BSP_Din_GetPinState (uint32_t pinNo)
 Get the value of the input pins.
 

Detailed Description

Function Documentation

◆ BSP_Din_GetPinState()

uint32_t BSP_Din_GetPinState ( uint32_t  pinNo)
extern
Parameters
pinNoPin no from (1-16)
Returns
uint32_t Value of pin should be either 0 or not 0

◆ BSP_Din_GetPortValue()

uint32_t BSP_Din_GetPortValue ( void  )
extern
Returns
uint32_t Current Port Input Value

◆ BSP_Din_SetAsIOPin()

const digital_pin_t * BSP_Din_SetAsIOPin ( uint32_t  pinNo)
extern
Parameters
pinNoInput pin No (Range 1-16)
Returns
digital_pin_t pointer to the pin structure

◆ BSP_Din_SetPinAlternateFunction()

const digital_pin_t * BSP_Din_SetPinAlternateFunction ( uint32_t  pinNo,
uint32_t  AlternateFunction 
)
extern
Parameters
pinNoInput pin No (Range 1-16)
AlternateFunctionAlternate Functionality to be used
Returns
digital_pin_t pointer to the pin structure