| IR_X1_Clk | RCC_APB2Periph_GPIOC | GPIO clock of IR X1 module |
| IR_X1_Pin | GPIO_Pin_4 | IR X1 module's GPIO pin |
| IR_X1_Port | GPIOC | GPIO port of IR X1 module |
| IR_X2_Clk | RCC_APB2Periph_GPIOC | GPIO clock of IR X2 module |
| IR_X2_Pin | GPIO_Pin_5 | IR X2 module's GPIO pin |
| IR_X2_Port | GPIOC | GPIO port of IR X2 module |
| IR_X3_Clk | RCC_APB2Periph_GPIOB | GPIO clock of IR X3 module |
| IR_X3_Pin | GPIO_Pin_0 | IR X3 module's GPIO pin |
| IR_X3_Port | GPIOB | GPIO port of IR X3 module |
| IR_X4_Clk | RCC_APB2Periph_GPIOB | GPIO clock of IR X4 module |
| IR_X4_Pin | GPIO_Pin_1 | IR X4 module's GPIO pin |
| IR_X4_Port | GPIOB | GPIO port of IR X4 module |
After the initialization is successful, use the following macro definition to obtain the four -way trace status
| IN_X1 | GPIO_ReadInputDataBit(IR_X1_Port, IR_X1_Pin) | Read the input state of the IR X1 module |
| IN_X2 | GPIO_ReadInputDataBit(IR_X2_Port, IR_X2_Pin) | Read the input state of the IR X2 module |
| IN_X3 | GPIO_ReadInputDataBit(IR_X3_Port, IR_X3_Pin) | Read the input state of the IR X3 module |
| IN_X4 | GPIO_ReadInputDataBit(IR_X4_Port, IR_X4_Pin) | Read the input state of the IR X4 module |