MX87QD User’s Manual
92 MX87QD User’s Manual
{
if(SetupData->OemDIOP0 == 0x00){ //Below check each GPIO Pin is
Input/Output low/Output high
InputValue |= 0x01; //Example. OemDIOP0=0 -> Input.
OemDIOP0=1 -> Output High. OemDIOP0=2 -> Output Low.
} else if (SetupData->OemDIOP0 == 0x01) {
OutputValue |= 0x01;
}
if(SetupData->OemDIOP1 == 0x00){
InputValue |= 0x02;
} else if (SetupData->OemDIOP1 == 0x01) {
OutputValue |= 0x02;
}
if(SetupData->OemDIOP2 == 0x00){
InputValue |= 0x04;
} else if (SetupData->OemDIOP2 == 0x01) {
OutputValue |= 0x04;
}
if(SetupData->OemDIOP3 == 0x00){
InputValue |= 0x08;
} else if (SetupData->OemDIOP3 == 0x01) {
OutputValue |= 0x08;
}
if(SetupData->OemDIOP4 == 0x00){
InputValue |= 0x10;
} else if (SetupData->OemDIOP4 == 0x01) {
OutputValue |= 0x10;
}
if(SetupData->OemDIOP5 == 0x00){
InputValue |= 0x20;
} else if (SetupData->OemDIOP5 == 0x01) {
OutputValue |= 0x20;
}
if(SetupData->OemDIOP6 == 0x00){