union{
unsigned long OUT;
struct {
unsigned QY7:1;
unsigned QY6:1;
unsigned QY5:1;
unsigned QY4:1;
unsigned QY3:1;
unsigned QY2:1;
unsigned QY1:1;
unsigned QY0:1;
unsigned QY15:1;
unsigned QY14:1;
unsigned QY13:1;
unsigned QY12:1;
unsigned QY11:1;
unsigned QY10:1;
unsigned QY9:1;
unsigned QY8:1;
unsigned HY0:1;
unsigned HY1:1;
unsigned HY2:1;
unsigned HY3:1;
unsigned HY4:1;
unsigned HY5:1;
unsigned HY6:1;
unsigned HY7:1;
unsigned HY8:1;
unsigned HY9:1;
unsigned HY10:1;
unsigned HY11:1;
unsigned HY12:1;
unsigned HY13:1;
unsigned HY14:1;
unsigned HY15:1;
};
}OUTbits;
#define QHS _LATE5
#define QDB OUTbits.QY1
#define QJS OUTbits.QY2
#define QYR OUTbits.QY3
#define QSD OUTbits.QY4
#define QQ1 OUTbits.QY5
#define QQ2 OUTbits.QY6
#define QQ3 OUTbits.QY7
#define QCS OUTbits.QY8
#define QSP OUTbits.QY9
#define QZY OUTbits.QY10
#define QJY OUTbits.QY11
#define QGB OUTbits.QY12
#define QYB OUTbits.QY13
#define QRB OUTbits.QY14
#define QJD OUTbits.QY15
#define HHS _LATB13
#define HDB OUTbits.HY1
#define HJS OUTbits.HY2
#define HYR OUTbits.HY3
#define HSD OUTbits.HY4
#define HQ1 OUTbits.HY5
#define HQ2 OUTbits.HY6
#define HQ3 OUTbits.HY7
#define HCS OUTbits.HY8
#define HSP OUTbits.HY9
#define HZY OUTbits.HY10
#define HJY OUTbits.HY11
#define HGB OUTbits.HY12
#define HYB OUTbits.HY13
#define HRB OUTbits.HY14
#define HJD OUTbits.HY15
在MICROCHIP的编译器下可以通过 |