Bar Logo 4kW dsPIC33C PSFB DC-DC DA (Part-No. )
 
Content
     
Loading...
Searching...
No Matches

The Pin Driver directs the operation and function of the selected device pins using dsPIC MCUs. More...

+ Collaboration diagram for Pins Driver:

Files

file  pins.c
 This is the generated driver source file for PINS driver.
 

Macros

#define LED_GREEN_SetHigh()
 Sets the RD7 GPIO Pin which has a custom name of LED_GREEN to High.
 
#define LED_GREEN_SetLow()
 Sets the RD7 GPIO Pin which has a custom name of LED_GREEN to Low.
 
#define LED_GREEN_Toggle()
 Toggles the RD7 GPIO Pin which has a custom name of LED_GREEN.
 
#define LED_GREEN_GetValue()
 Reads the value of the RD7 GPIO Pin which has a custom name of LED_GREEN.
 
#define LED_GREEN_SetDigitalInput()
 Configures the RD7 GPIO Pin which has a custom name of LED_GREEN as Input.
 
#define LED_GREEN_SetDigitalOutput()
 Configures the RD7 GPIO Pin which has a custom name of LED_GREEN as Output.
 
#define LED_RED_SetHigh()
 Sets the RD8 GPIO Pin which has a custom name of LED_RED to High.
 
#define LED_RED_SetLow()
 Sets the RD8 GPIO Pin which has a custom name of LED_RED to Low.
 
#define LED_RED_Toggle()
 Toggles the RD8 GPIO Pin which has a custom name of LED_RED.
 
#define LED_RED_GetValue()
 Reads the value of the RD8 GPIO Pin which has a custom name of LED_RED.
 
#define LED_RED_SetDigitalInput()
 Configures the RD8 GPIO Pin which has a custom name of LED_RED as Input.
 
#define LED_RED_SetDigitalOutput()
 Configures the RD8 GPIO Pin which has a custom name of LED_RED as Output.
 
#define FAULT_EN_SetHigh()
 Sets the RD9 GPIO Pin which has a custom name of FAULT_EN to High.
 
#define FAULT_EN_SetLow()
 Sets the RD9 GPIO Pin which has a custom name of FAULT_EN to Low.
 
#define FAULT_EN_Toggle()
 Toggles the RD9 GPIO Pin which has a custom name of FAULT_EN.
 
#define FAULT_EN_GetValue()
 Reads the value of the RD9 GPIO Pin which has a custom name of FAULT_EN.
 
#define FAULT_EN_SetDigitalInput()
 Configures the RD9 GPIO Pin which has a custom name of FAULT_EN as Input.
 
#define FAULT_EN_SetDigitalOutput()
 Configures the RD9 GPIO Pin which has a custom name of FAULT_EN as Output.
 
#define GPIO_debug_SetHigh()
 Sets the RD14 GPIO Pin which has a custom name of GPIO_debug to High.
 
#define GPIO_debug_SetLow()
 Sets the RD14 GPIO Pin which has a custom name of GPIO_debug to Low.
 
#define GPIO_debug_Toggle()
 Toggles the RD14 GPIO Pin which has a custom name of GPIO_debug.
 
#define GPIO_debug_GetValue()
 Reads the value of the RD14 GPIO Pin which has a custom name of GPIO_debug.
 
#define GPIO_debug_SetDigitalInput()
 Configures the RD14 GPIO Pin which has a custom name of GPIO_debug as Input.
 
#define GPIO_debug_SetDigitalOutput()
 Configures the RD14 GPIO Pin which has a custom name of GPIO_debug as Output.
 
#define LED_DP_PIM_SetHigh()
 Sets the RD15 GPIO Pin which has a custom name of LED_DP_PIM to High.
 
#define LED_DP_PIM_SetLow()
 Sets the RD15 GPIO Pin which has a custom name of LED_DP_PIM to Low.
 
#define LED_DP_PIM_Toggle()
 Toggles the RD15 GPIO Pin which has a custom name of LED_DP_PIM.
 
#define LED_DP_PIM_GetValue()
 Reads the value of the RD15 GPIO Pin which has a custom name of LED_DP_PIM.
 
#define LED_DP_PIM_SetDigitalInput()
 Configures the RD15 GPIO Pin which has a custom name of LED_DP_PIM as Input.
 
#define LED_DP_PIM_SetDigitalOutput()
 Configures the RD15 GPIO Pin which has a custom name of LED_DP_PIM as Output.
 

Functions

void PINS_Initialize (void)
 Initializes the PINS module.
 

Detailed Description

Macro Definition Documentation

◆ FAULT_EN_GetValue

#define FAULT_EN_GetValue ( )
Value:
_RD9
Parameters
none
Returns
none

Definition at line 181 of file pins.h.

◆ FAULT_EN_SetDigitalInput

#define FAULT_EN_SetDigitalInput ( )
Value:
(_TRISD9 = 1)
Parameters
none
Returns
none

Definition at line 189 of file pins.h.

◆ FAULT_EN_SetDigitalOutput

#define FAULT_EN_SetDigitalOutput ( )
Value:
(_TRISD9 = 0)
Parameters
none
Returns
none

Definition at line 197 of file pins.h.

◆ FAULT_EN_SetHigh

#define FAULT_EN_SetHigh ( )
Value:
(_LATD9 = 1)
Precondition
The RD9 must be set as Output Pin
Parameters
none
Returns
none

Definition at line 155 of file pins.h.

◆ FAULT_EN_SetLow

#define FAULT_EN_SetLow ( )
Value:
(_LATD9 = 0)
Precondition
The RD9 must be set as Output Pin
Parameters
none
Returns
none

Definition at line 164 of file pins.h.

◆ FAULT_EN_Toggle

#define FAULT_EN_Toggle ( )
Value:
(_LATD9 ^= 1)
Precondition
The RD9 must be set as Output Pin
Parameters
none
Returns
none

Definition at line 173 of file pins.h.

◆ GPIO_debug_GetValue

#define GPIO_debug_GetValue ( )
Value:
_RD14
Parameters
none
Returns
none

Definition at line 232 of file pins.h.

◆ GPIO_debug_SetDigitalInput

#define GPIO_debug_SetDigitalInput ( )
Value:
(_TRISD14 = 1)
Parameters
none
Returns
none

Definition at line 240 of file pins.h.

◆ GPIO_debug_SetDigitalOutput

#define GPIO_debug_SetDigitalOutput ( )
Value:
(_TRISD14 = 0)
Parameters
none
Returns
none

Definition at line 248 of file pins.h.

◆ GPIO_debug_SetHigh

#define GPIO_debug_SetHigh ( )
Value:
(_LATD14 = 1)
Precondition
The RD14 must be set as Output Pin
Parameters
none
Returns
none

Definition at line 206 of file pins.h.

◆ GPIO_debug_SetLow

#define GPIO_debug_SetLow ( )
Value:
(_LATD14 = 0)
Precondition
The RD14 must be set as Output Pin
Parameters
none
Returns
none

Definition at line 215 of file pins.h.

◆ GPIO_debug_Toggle

#define GPIO_debug_Toggle ( )
Value:
(_LATD14 ^= 1)
Precondition
The RD14 must be set as Output Pin
Parameters
none
Returns
none

Definition at line 224 of file pins.h.

◆ LED_DP_PIM_GetValue

#define LED_DP_PIM_GetValue ( )
Value:
_RD15
Parameters
none
Returns
none

Definition at line 283 of file pins.h.

◆ LED_DP_PIM_SetDigitalInput

#define LED_DP_PIM_SetDigitalInput ( )
Value:
(_TRISD15 = 1)
Parameters
none
Returns
none

Definition at line 291 of file pins.h.

◆ LED_DP_PIM_SetDigitalOutput

#define LED_DP_PIM_SetDigitalOutput ( )
Value:
(_TRISD15 = 0)
Parameters
none
Returns
none

Definition at line 299 of file pins.h.

◆ LED_DP_PIM_SetHigh

#define LED_DP_PIM_SetHigh ( )
Value:
(_LATD15 = 1)
Precondition
The RD15 must be set as Output Pin
Parameters
none
Returns
none

Definition at line 257 of file pins.h.

◆ LED_DP_PIM_SetLow

#define LED_DP_PIM_SetLow ( )
Value:
(_LATD15 = 0)
Precondition
The RD15 must be set as Output Pin
Parameters
none
Returns
none

Definition at line 266 of file pins.h.

◆ LED_DP_PIM_Toggle

#define LED_DP_PIM_Toggle ( )
Value:
(_LATD15 ^= 1)
Precondition
The RD15 must be set as Output Pin
Parameters
none
Returns
none

Definition at line 275 of file pins.h.

◆ LED_GREEN_GetValue

#define LED_GREEN_GetValue ( )
Value:
_RD7
Parameters
none
Returns
none

Definition at line 79 of file pins.h.

◆ LED_GREEN_SetDigitalInput

#define LED_GREEN_SetDigitalInput ( )
Value:
(_TRISD7 = 1)
Parameters
none
Returns
none

Definition at line 87 of file pins.h.

◆ LED_GREEN_SetDigitalOutput

#define LED_GREEN_SetDigitalOutput ( )
Value:
(_TRISD7 = 0)
Parameters
none
Returns
none

Definition at line 95 of file pins.h.

◆ LED_GREEN_SetHigh

#define LED_GREEN_SetHigh ( )
Value:
(_LATD7 = 1)
Precondition
The RD7 must be set as Output Pin
Parameters
none
Returns
none

Definition at line 53 of file pins.h.

◆ LED_GREEN_SetLow

#define LED_GREEN_SetLow ( )
Value:
(_LATD7 = 0)
Precondition
The RD7 must be set as Output Pin
Parameters
none
Returns
none

Definition at line 62 of file pins.h.

◆ LED_GREEN_Toggle

#define LED_GREEN_Toggle ( )
Value:
(_LATD7 ^= 1)
Precondition
The RD7 must be set as Output Pin
Parameters
none
Returns
none

Definition at line 71 of file pins.h.

◆ LED_RED_GetValue

#define LED_RED_GetValue ( )
Value:
_RD8
Parameters
none
Returns
none

Definition at line 130 of file pins.h.

◆ LED_RED_SetDigitalInput

#define LED_RED_SetDigitalInput ( )
Value:
(_TRISD8 = 1)
Parameters
none
Returns
none

Definition at line 138 of file pins.h.

◆ LED_RED_SetDigitalOutput

#define LED_RED_SetDigitalOutput ( )
Value:
(_TRISD8 = 0)
Parameters
none
Returns
none

Definition at line 146 of file pins.h.

◆ LED_RED_SetHigh

#define LED_RED_SetHigh ( )
Value:
(_LATD8 = 1)
Precondition
The RD8 must be set as Output Pin
Parameters
none
Returns
none

Definition at line 104 of file pins.h.

◆ LED_RED_SetLow

#define LED_RED_SetLow ( )
Value:
(_LATD8 = 0)
Precondition
The RD8 must be set as Output Pin
Parameters
none
Returns
none

Definition at line 113 of file pins.h.

◆ LED_RED_Toggle

#define LED_RED_Toggle ( )
Value:
(_LATD8 ^= 1)
Precondition
The RD8 must be set as Output Pin
Parameters
none
Returns
none

Definition at line 122 of file pins.h.

Function Documentation

◆ PINS_Initialize()

void PINS_Initialize ( void )
Parameters
none
Returns
none

Setting the Output Latch SFR(s)

Setting the GPIO Direction SFR(s)

Setting the Weak Pull Up and Weak Pull Down SFR(s)

Setting the Open Drain SFR(s)

Setting the Analog/Digital Configuration SFR(s)

Set the PPS

Definition at line 46 of file pins.c.

+ Here is the caller graph for this function: