uint32_t Delay: This parameter can be (0..2^32)
retval: None
GPIO口控制
多个IO口设置同样的状态,可以使用 '|' 连接
GPIO_Write
1
HAL_GPIO_WritePin(GPIOx, GPIO_Pin, PinState)
GPIOx: where x can be (A..G depending on device used)
GPIO_Pin : This parameter can be one of GPIO_PIN_x where x can be (0..15)
PinState : This parameter can be one of the GPIO_PinState enum values:
1 GPIO_PIN_RESET: to clear the port pin (0)
2 GPIO_PIN_SET: to set the port pin (1)
retval: None
GPIO_Read
1
HAL_GPIO_ReadPin(GPIOx, GPIO_Pin)
GPIOx: where x can be (A..G depending on device used)
GPIO_Pin : This parameter can be one of GPIO_PIN_x where x can be (0..15)
retval: 1 GPIO_PIN_RESET (0)
2 GPIO_PIN_SET (1)
* @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @param pData Pointer to data buffer (u8 or u16 data elements). * @param Size Amount of data elements (u8 or u16) to be sent * @param Timeout Timeout duration * @retval HAL status
* @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @param pData Pointer to data buffer (u8 or u16 data elements). * @param Size Amount of data elements (u8 or u16) to be received. * @param Timeout Timeout duration * @retval HAL status
* @param hadc: ADC handle * @param pData: The destination Buffer address. * @param Length: The length of data to be transferred from ADC peripheral to memory. * @retval None
DMA must be configured to transfer size: half word.
* @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @param pTxData pointer to transmission data buffer * @param pRxData pointer to reception data buffer * @param Size amount of data to be sent and received * @param Timeout Timeout duration * @retval HAL status