Solar panel
Loading...
Searching...
No Matches
pin_manager.h File Reference
#include <xc.h>

Go to the source code of this file.

Macros

#define INPUT   1
 
#define OUTPUT   0
 
#define HIGH   1
 
#define LOW   0
 
#define ANALOG   1
 
#define DIGITAL   0
 
#define PULL_UP_ENABLED   1
 
#define PULL_UP_DISABLED   0
 
#define RC2_SetHigh()   do { LATCbits.LATC2 = 1; } while(0)
 
#define RC2_SetLow()   do { LATCbits.LATC2 = 0; } while(0)
 
#define RC2_Toggle()   do { LATCbits.LATC2 = ~LATCbits.LATC2; } while(0)
 
#define RC2_GetValue()   PORTCbits.RC2
 
#define RC2_SetDigitalInput()   do { TRISCbits.TRISC2 = 1; } while(0)
 
#define RC2_SetDigitalOutput()   do { TRISCbits.TRISC2 = 0; } while(0)
 
#define RC6_SetHigh()   do { LATCbits.LATC6 = 1; } while(0)
 
#define RC6_SetLow()   do { LATCbits.LATC6 = 0; } while(0)
 
#define RC6_Toggle()   do { LATCbits.LATC6 = ~LATCbits.LATC6; } while(0)
 
#define RC6_GetValue()   PORTCbits.RC6
 
#define RC6_SetDigitalInput()   do { TRISCbits.TRISC6 = 1; } while(0)
 
#define RC6_SetDigitalOutput()   do { TRISCbits.TRISC6 = 0; } while(0)
 
#define voltage_TRIS   TRISFbits.TRISF0
 
#define voltage_LAT   LATFbits.LATF0
 
#define voltage_PORT   PORTFbits.RF0
 
#define voltage_ANS   anselRF0bits.anselRF0
 
#define voltage_SetHigh()   do { LATFbits.LATF0 = 1; } while(0)
 
#define voltage_SetLow()   do { LATFbits.LATF0 = 0; } while(0)
 
#define voltage_Toggle()   do { LATFbits.LATF0 = ~LATFbits.LATF0; } while(0)
 
#define voltage_GetValue()   PORTFbits.RF0
 
#define voltage_SetDigitalInput()   do { TRISFbits.TRISF0 = 1; } while(0)
 
#define voltage_SetDigitalOutput()   do { TRISFbits.TRISF0 = 0; } while(0)
 
#define voltage_SetAnalogMode()   do { anselRF0bits.anselRF0 = 1; } while(0)
 
#define voltage_SetDigitalMode()   do { anselRF0bits.anselRF0 = 0; } while(0)
 
#define current_TRIS   TRISFbits.TRISF1
 
#define current_LAT   LATFbits.LATF1
 
#define current_PORT   PORTFbits.RF1
 
#define current_ANS   anselRF1bits.anselRF1
 
#define current_SetHigh()   do { LATFbits.LATF1 = 1; } while(0)
 
#define current_SetLow()   do { LATFbits.LATF1 = 0; } while(0)
 
#define current_Toggle()   do { LATFbits.LATF1 = ~LATFbits.LATF1; } while(0)
 
#define current_GetValue()   PORTFbits.RF1
 
#define current_SetDigitalInput()   do { TRISFbits.TRISF1 = 1; } while(0)
 
#define current_SetDigitalOutput()   do { TRISFbits.TRISF1 = 0; } while(0)
 
#define current_SetAnalogMode()   do { anselRF1bits.anselRF1 = 1; } while(0)
 
#define current_SetDigitalMode()   do { anselRF1bits.anselRF1 = 0; } while(0)
 

Functions

void PIN_MANAGER_Initialize (void)
 
void PIN_MANAGER_IOC (void)
 

Macro Definition Documentation

◆ ANALOG

#define ANALOG   1

Definition at line 64 of file pin_manager.h.

◆ current_ANS

#define current_ANS   anselRF1bits.anselRF1

Definition at line 104 of file pin_manager.h.

◆ current_GetValue

#define current_GetValue ( )    PORTFbits.RF1

Definition at line 108 of file pin_manager.h.

◆ current_LAT

#define current_LAT   LATFbits.LATF1

Definition at line 102 of file pin_manager.h.

◆ current_PORT

#define current_PORT   PORTFbits.RF1

Definition at line 103 of file pin_manager.h.

◆ current_SetAnalogMode

#define current_SetAnalogMode ( )    do { anselRF1bits.anselRF1 = 1; } while(0)

Definition at line 111 of file pin_manager.h.

◆ current_SetDigitalInput

#define current_SetDigitalInput ( )    do { TRISFbits.TRISF1 = 1; } while(0)

Definition at line 109 of file pin_manager.h.

◆ current_SetDigitalMode

#define current_SetDigitalMode ( )    do { anselRF1bits.anselRF1 = 0; } while(0)

Definition at line 112 of file pin_manager.h.

◆ current_SetDigitalOutput

#define current_SetDigitalOutput ( )    do { TRISFbits.TRISF1 = 0; } while(0)

Definition at line 110 of file pin_manager.h.

◆ current_SetHigh

#define current_SetHigh ( )    do { LATFbits.LATF1 = 1; } while(0)

Definition at line 105 of file pin_manager.h.

◆ current_SetLow

#define current_SetLow ( )    do { LATFbits.LATF1 = 0; } while(0)

Definition at line 106 of file pin_manager.h.

◆ current_Toggle

#define current_Toggle ( )    do { LATFbits.LATF1 = ~LATFbits.LATF1; } while(0)

Definition at line 107 of file pin_manager.h.

◆ current_TRIS

#define current_TRIS   TRISFbits.TRISF1

Definition at line 101 of file pin_manager.h.

◆ DIGITAL

#define DIGITAL   0

Definition at line 65 of file pin_manager.h.

◆ HIGH

#define HIGH   1

Definition at line 61 of file pin_manager.h.

◆ INPUT

#define INPUT   1

@Generated Pin Manager Header File

@Company: Microchip Technology Inc.

@File Name: pin_manager.h

@Summary: This is the Pin Manager file generated using PIC10 / PIC12 / PIC16 / PIC18 MCUs

@Description: This header file provides implementations for pin APIs for all pins selected in the GUI. Generation Information : Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.81.8 Device : PIC18F97J60 Version : 2.0 The generated drivers are tested against the following: Compiler : XC8 2.36 and above MPLAB : MPLAB X 6.00

Copyright (c) 2013 - 2015 released Microchip Technology Inc. All rights reserved. Section: Included Files

Definition at line 58 of file pin_manager.h.

◆ LOW

#define LOW   0

Definition at line 62 of file pin_manager.h.

◆ OUTPUT

#define OUTPUT   0

Definition at line 59 of file pin_manager.h.

◆ PULL_UP_DISABLED

#define PULL_UP_DISABLED   0

Definition at line 68 of file pin_manager.h.

◆ PULL_UP_ENABLED

#define PULL_UP_ENABLED   1

Definition at line 67 of file pin_manager.h.

◆ RC2_GetValue

#define RC2_GetValue ( )    PORTCbits.RC2

Definition at line 74 of file pin_manager.h.

◆ RC2_SetDigitalInput

#define RC2_SetDigitalInput ( )    do { TRISCbits.TRISC2 = 1; } while(0)

Definition at line 75 of file pin_manager.h.

◆ RC2_SetDigitalOutput

#define RC2_SetDigitalOutput ( )    do { TRISCbits.TRISC2 = 0; } while(0)

Definition at line 76 of file pin_manager.h.

◆ RC2_SetHigh

#define RC2_SetHigh ( )    do { LATCbits.LATC2 = 1; } while(0)

Definition at line 71 of file pin_manager.h.

◆ RC2_SetLow

#define RC2_SetLow ( )    do { LATCbits.LATC2 = 0; } while(0)

Definition at line 72 of file pin_manager.h.

◆ RC2_Toggle

#define RC2_Toggle ( )    do { LATCbits.LATC2 = ~LATCbits.LATC2; } while(0)

Definition at line 73 of file pin_manager.h.

◆ RC6_GetValue

#define RC6_GetValue ( )    PORTCbits.RC6

Definition at line 82 of file pin_manager.h.

◆ RC6_SetDigitalInput

#define RC6_SetDigitalInput ( )    do { TRISCbits.TRISC6 = 1; } while(0)

Definition at line 83 of file pin_manager.h.

◆ RC6_SetDigitalOutput

#define RC6_SetDigitalOutput ( )    do { TRISCbits.TRISC6 = 0; } while(0)

Definition at line 84 of file pin_manager.h.

◆ RC6_SetHigh

#define RC6_SetHigh ( )    do { LATCbits.LATC6 = 1; } while(0)

Definition at line 79 of file pin_manager.h.

◆ RC6_SetLow

#define RC6_SetLow ( )    do { LATCbits.LATC6 = 0; } while(0)

Definition at line 80 of file pin_manager.h.

◆ RC6_Toggle

#define RC6_Toggle ( )    do { LATCbits.LATC6 = ~LATCbits.LATC6; } while(0)

Definition at line 81 of file pin_manager.h.

◆ voltage_ANS

#define voltage_ANS   anselRF0bits.anselRF0

Definition at line 90 of file pin_manager.h.

◆ voltage_GetValue

#define voltage_GetValue ( )    PORTFbits.RF0

Definition at line 94 of file pin_manager.h.

◆ voltage_LAT

#define voltage_LAT   LATFbits.LATF0

Definition at line 88 of file pin_manager.h.

◆ voltage_PORT

#define voltage_PORT   PORTFbits.RF0

Definition at line 89 of file pin_manager.h.

◆ voltage_SetAnalogMode

#define voltage_SetAnalogMode ( )    do { anselRF0bits.anselRF0 = 1; } while(0)

Definition at line 97 of file pin_manager.h.

◆ voltage_SetDigitalInput

#define voltage_SetDigitalInput ( )    do { TRISFbits.TRISF0 = 1; } while(0)

Definition at line 95 of file pin_manager.h.

◆ voltage_SetDigitalMode

#define voltage_SetDigitalMode ( )    do { anselRF0bits.anselRF0 = 0; } while(0)

Definition at line 98 of file pin_manager.h.

◆ voltage_SetDigitalOutput

#define voltage_SetDigitalOutput ( )    do { TRISFbits.TRISF0 = 0; } while(0)

Definition at line 96 of file pin_manager.h.

◆ voltage_SetHigh

#define voltage_SetHigh ( )    do { LATFbits.LATF0 = 1; } while(0)

Definition at line 91 of file pin_manager.h.

◆ voltage_SetLow

#define voltage_SetLow ( )    do { LATFbits.LATF0 = 0; } while(0)

Definition at line 92 of file pin_manager.h.

◆ voltage_Toggle

#define voltage_Toggle ( )    do { LATFbits.LATF0 = ~LATFbits.LATF0; } while(0)

Definition at line 93 of file pin_manager.h.

◆ voltage_TRIS

#define voltage_TRIS   TRISFbits.TRISF0

Definition at line 87 of file pin_manager.h.

Function Documentation

◆ PIN_MANAGER_Initialize()

void PIN_MANAGER_Initialize ( void  )

@Param none @Returns none @Description GPIO and peripheral I/O initialization @Example PIN_MANAGER_Initialize();

Generated Pin Manager File

Company: Microchip Technology Inc.

File Name: pin_manager.c

Summary: This is the Pin Manager file generated using PIC10 / PIC12 / PIC16 / PIC18 MCUs

Description: This header file provides implementations for pin APIs for all pins selected in the GUI. Generation Information : Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.81.8 Device : PIC18F97J60 Driver Version : 2.0 The generated drivers are tested against the following: Compiler : XC8 2.36 and above MPLAB : MPLAB X 6.00

LATx registers

TRISx registers

PCFG setting

Definition at line 50 of file pin_manager.c.

◆ PIN_MANAGER_IOC()

void PIN_MANAGER_IOC ( void  )

@Param none @Returns none @Description Interrupt on Change Handling routine @Example PIN_MANAGER_IOC();

Definition at line 90 of file pin_manager.c.