Four Road Search(IRtracking)

After the initialization is successful, use the following macro definition to obtain the four -way trace status

Macro definitionvalueAnnotation
IR_X1_ClkRCC_APB2Periph_GPIOCGPIO clock of IR X1 module
IR_X1_PinGPIO_Pin_4IR X1 module's GPIO pin
IR_X1_PortGPIOCGPIO port of IR X1 module
IR_X2_ClkRCC_APB2Periph_GPIOCGPIO clock of IR X2 module
IR_X2_PinGPIO_Pin_5IR X2 module's GPIO pin
IR_X2_PortGPIOCGPIO port of IR X2 module
IR_X3_ClkRCC_APB2Periph_GPIOBGPIO clock of IR X3 module
IR_X3_PinGPIO_Pin_0IR X3 module's GPIO pin
IR_X3_PortGPIOBGPIO port of IR X3 module
IR_X4_ClkRCC_APB2Periph_GPIOBGPIO clock of IR X4 module
IR_X4_PinGPIO_Pin_1IR X4 module's GPIO pin
IR_X4_PortGPIOBGPIO port of IR X4 module
IN_X1GPIO_ReadInputDataBit(IR_X1_Port, IR_X1_Pin)Read the input state of the IR X1 module
IN_X2GPIO_ReadInputDataBit(IR_X2_Port, IR_X2_Pin)Read the input state of the IR X2 module
IN_X3GPIO_ReadInputDataBit(IR_X3_Port, IR_X3_Pin)Read the input state of the IR X3 module
IN_X4GPIO_ReadInputDataBit(IR_X4_Port, IR_X4_Pin)Read the input state of the IR X4 module

irtracking_init(void)

GPIO of the Infrastructure Module of the Infrastructure Module

Return valuetype
nonevoid