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

Functions

const digital_pin_tBSP_Dio_SetAsIOPin (uint32_t pinNo, GPIO_PinState state)
 Set the Dio pin as GPIO.
 
const digital_pin_tBSP_Dio_SetPinAlternateFunction (uint32_t pinNo, uint32_t AlternateFunction)
 Selects the Alternate Output Functionality. To configure as IO use Dio_SetAsIOPin(pinNo, state)
 
void BSP_Dio_SetAsInputPort (void)
 Set the IO Port as Input. Pin 9 is always output.
 
void BSP_Dio_SetAsOutputPort (void)
 Set the IO Port as Output. Pin 9 is always output.
 
void BSP_Dio_SetPortValue (uint32_t val)
 Set the value of output port.
 
uint32_t BSP_Dio_GetPortValue (void)
 Gets the value of the input port.
 

Detailed Description

Function Documentation

◆ BSP_Dio_GetPortValue()

uint32_t BSP_Dio_GetPortValue ( void  )
extern
Returns
val- value on the port

◆ BSP_Dio_SetAsIOPin()

const digital_pin_t * BSP_Dio_SetAsIOPin ( uint32_t  pinNo,
GPIO_PinState  state 
)
extern
Parameters
pinNoDio Pin No ( Range 1 - 8)
stateState of the pin
Returns
*pin Pointer to the Dio pin structure

◆ BSP_Dio_SetAsOutputPort()

void BSP_Dio_SetAsOutputPort ( void  )
extern
Note
Initial value for output pin is 0

◆ BSP_Dio_SetPinAlternateFunction()

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

◆ BSP_Dio_SetPortValue()

void BSP_Dio_SetPortValue ( uint32_t  val)
extern
Parameters
val-value to be set