Bar Logo 3.8/7.6 kw Totem pole Demonstration Application (Part-No. (not specified))
 
Content
     
Loading...
Searching...
No Matches
pins.h
1
18/*
19© [2024] Microchip Technology Inc. and its subsidiaries.
20
21 Subject to your compliance with these terms, you may use Microchip
22 software and any derivatives exclusively with Microchip products.
23 You are responsible for complying with 3rd party license terms
24 applicable to your use of 3rd party software (including open source
25 software) that may accompany Microchip software. SOFTWARE IS ?AS IS.?
26 NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS
27 SOFTWARE, INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT,
28 MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
29 WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
30 INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY
31 KIND WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF
32 MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE
33 FORESEEABLE. TO THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP?S
34 TOTAL LIABILITY ON ALL CLAIMS RELATED TO THE SOFTWARE WILL NOT
35 EXCEED AMOUNT OF FEES, IF ANY, YOU PAID DIRECTLY TO MICROCHIP FOR
36 THIS SOFTWARE.
37*/
38
39#ifndef PINS_H
40#define PINS_H
41// Section: Includes
42#include <xc.h>
43
44// Section: Device Pin Macros
45
53#define ACmonitorTrigger_SetHigh() (_LATB13 = 1)
54
62#define ACmonitorTrigger_SetLow() (_LATB13 = 0)
63
71#define ACmonitorTrigger_Toggle() (_LATB13 ^= 1)
72
79#define ACmonitorTrigger_GetValue() _RB13
80
87#define ACmonitorTrigger_SetDigitalInput() (_TRISB13 = 1)
88
95#define ACmonitorTrigger_SetDigitalOutput() (_TRISB13 = 0)
96
104#define TP129_RB14_SetHigh() (_LATB14 = 1)
105
113#define TP129_RB14_SetLow() (_LATB14 = 0)
114
122#define TP129_RB14_Toggle() (_LATB14 ^= 1)
123
130#define TP129_RB14_GetValue() _RB14
131
138#define TP129_RB14_SetDigitalInput() (_TRISB14 = 1)
139
146#define TP129_RB14_SetDigitalOutput() (_TRISB14 = 0)
147
155#define TP107_RC9_SetHigh() (_LATC9 = 1)
156
164#define TP107_RC9_SetLow() (_LATC9 = 0)
165
173#define TP107_RC9_Toggle() (_LATC9 ^= 1)
174
181#define TP107_RC9_GetValue() _RC9
182
189#define TP107_RC9_SetDigitalInput() (_TRISC9 = 1)
190
197#define TP107_RC9_SetDigitalOutput() (_TRISC9 = 0)
198
206#define TP108_RC12_SetHigh() (_LATC12 = 1)
207
215#define TP108_RC12_SetLow() (_LATC12 = 0)
216
224#define TP108_RC12_Toggle() (_LATC12 ^= 1)
225
232#define TP108_RC12_GetValue() _RC12
233
240#define TP108_RC12_SetDigitalInput() (_TRISC12 = 1)
241
248#define TP108_RC12_SetDigitalOutput() (_TRISC12 = 0)
249
257#define TP126_RC13_SetHigh() (_LATC13 = 1)
258
266#define TP126_RC13_SetLow() (_LATC13 = 0)
267
275#define TP126_RC13_Toggle() (_LATC13 ^= 1)
276
283#define TP126_RC13_GetValue() _RC13
284
291#define TP126_RC13_SetDigitalInput() (_TRISC13 = 1)
292
299#define TP126_RC13_SetDigitalOutput() (_TRISC13 = 0)
300
308#define PWM_L_N_SetHigh() (_LATD0 = 1)
309
317#define PWM_L_N_SetLow() (_LATD0 = 0)
318
326#define PWM_L_N_Toggle() (_LATD0 ^= 1)
327
334#define PWM_L_N_GetValue() _RD0
335
342#define PWM_L_N_SetDigitalInput() (_TRISD0 = 1)
343
350#define PWM_L_N_SetDigitalOutput() (_TRISD0 = 0)
351
359#define PWM_H_N_SetHigh() (_LATD1 = 1)
360
368#define PWM_H_N_SetLow() (_LATD1 = 0)
369
377#define PWM_H_N_Toggle() (_LATD1 ^= 1)
378
385#define PWM_H_N_GetValue() _RD1
386
393#define PWM_H_N_SetDigitalInput() (_TRISD1 = 1)
394
401#define PWM_H_N_SetDigitalOutput() (_TRISD1 = 0)
402
410#define TP39_RD2_SetHigh() (_LATD2 = 1)
411
419#define TP39_RD2_SetLow() (_LATD2 = 0)
420
428#define TP39_RD2_Toggle() (_LATD2 ^= 1)
429
436#define TP39_RD2_GetValue() _RD2
437
444#define TP39_RD2_SetDigitalInput() (_TRISD2 = 1)
445
452#define TP39_RD2_SetDigitalOutput() (_TRISD2 = 0)
453
461#define GPIO_Y_L_SetHigh() (_LATD5 = 1)
462
470#define GPIO_Y_L_SetLow() (_LATD5 = 0)
471
479#define GPIO_Y_L_Toggle() (_LATD5 ^= 1)
480
487#define GPIO_Y_L_GetValue() _RD5
488
495#define GPIO_Y_L_SetDigitalInput() (_TRISD5 = 1)
496
503#define GPIO_Y_L_SetDigitalOutput() (_TRISD5 = 0)
504
512#define GPIO_Y_H_SetHigh() (_LATD6 = 1)
513
521#define GPIO_Y_H_SetLow() (_LATD6 = 0)
522
530#define GPIO_Y_H_Toggle() (_LATD6 ^= 1)
531
538#define GPIO_Y_H_GetValue() _RD6
539
546#define GPIO_Y_H_SetDigitalInput() (_TRISD6 = 1)
547
554#define GPIO_Y_H_SetDigitalOutput() (_TRISD6 = 0)
555
563#define LED1_SetHigh() (_LATD8 = 1)
564
572#define LED1_SetLow() (_LATD8 = 0)
573
581#define LED1_Toggle() (_LATD8 ^= 1)
582
589#define LED1_GetValue() _RD8
590
597#define LED1_SetDigitalInput() (_TRISD8 = 1)
598
605#define LED1_SetDigitalOutput() (_TRISD8 = 0)
606
614#define FAULT_SetHigh() (_LATD9 = 1)
615
623#define FAULT_SetLow() (_LATD9 = 0)
624
632#define FAULT_Toggle() (_LATD9 ^= 1)
633
640#define FAULT_GetValue() _RD9
641
648#define FAULT_SetDigitalInput() (_TRISD9 = 1)
649
656#define FAULT_SetDigitalOutput() (_TRISD9 = 0)
657
665#define TP4_DPPIM_RD13_SetHigh() (_LATD13 = 1)
666
674#define TP4_DPPIM_RD13_SetLow() (_LATD13 = 0)
675
683#define TP4_DPPIM_RD13_Toggle() (_LATD13 ^= 1)
684
691#define TP4_DPPIM_RD13_GetValue() _RD13
692
699#define TP4_DPPIM_RD13_SetDigitalInput() (_TRISD13 = 1)
700
707#define TP4_DPPIM_RD13_SetDigitalOutput() (_TRISD13 = 0)
708
716#define RELAY_SetHigh() (_LATD14 = 1)
717
725#define RELAY_SetLow() (_LATD14 = 0)
726
734#define RELAY_Toggle() (_LATD14 ^= 1)
735
742#define RELAY_GetValue() _RD14
743
750#define RELAY_SetDigitalInput() (_TRISD14 = 1)
751
758#define RELAY_SetDigitalOutput() (_TRISD14 = 0)
759
766void PINS_Initialize(void);
767
768
769
770#endif
void PINS_Initialize(void)
Initializes the PINS module.
Definition pins.c:46