/* --------------------------------------------------------------------- */ void XGINew_SetRegOR( USHORT Port , USHORT Index , USHORT DataOR ) { USHORT temp ; temp = XGINew_GetReg1( Port , Index ) ; /* XGINew_Part1Port index 02 */ temp |= DataOR ; XGINew_SetReg1( Port , Index , temp ) ; }
/* --------------------------------------------------------------------- */ void XGINew_SetRegAND(USHORT Port,USHORT Index,USHORT DataAND) { USHORT temp ; temp = XGINew_GetReg1( Port , Index ) ; /* XGINew_Part1Port index 02 */ temp &= DataAND ; XGINew_SetReg1( Port , Index , temp ) ; }
/* --------------------------------------------------------------------- */ void XGINew_SetRegANDOR( USHORT Port , USHORT Index , USHORT DataAND , USHORT DataOR ) { USHORT temp ; temp = XGINew_GetReg1( Port , Index ) ; /* XGINew_Part1Port index 02 */ temp = ( temp & ( DataAND ) ) | DataOR ; XGINew_SetReg1( Port , Index , temp ) ; }
/* --------------------------------------------------------------------- */ void XGINew_SetRegOR( unsigned long Port , unsigned short Index , unsigned short DataOR ) { unsigned short temp ; temp = XGINew_GetReg1( Port , Index ) ; /* XGINew_Part1Port index 02 */ temp |= DataOR ; XGINew_SetReg1( Port , Index , temp ) ; }
/* --------------------------------------------------------------------- */ void XGINew_SetRegAND(unsigned long Port,unsigned short Index,unsigned short DataAND) { unsigned short temp ; temp = XGINew_GetReg1( Port , Index ) ; /* XGINew_Part1Port index 02 */ temp &= DataAND ; XGINew_SetReg1( Port , Index , temp ) ; }
/* --------------------------------------------------------------------- */ void XGINew_SetRegANDOR( unsigned long Port , unsigned short Index , unsigned short DataAND , unsigned short DataOR ) { unsigned short temp ; temp = XGINew_GetReg1( Port , Index ) ; /* XGINew_Part1Port index 02 */ temp = ( temp & ( DataAND ) ) | DataOR ; XGINew_SetReg1( Port , Index , temp ) ; }