STM32Hal串口发送
时间: 2023-09-09 13:07:44 浏览: 182
在STM32 HAL库中,可以使用以下函数进行串口发送:
HAL_UART_Transmit(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint32_t Timeout);
其中,huart是UART_HandleTypeDef类型的串口句柄,pData是发送数据的缓冲区指针,Size是要发送的数据长度,Timeout是发送超时时间。通过调用这个函数,可以将指定长度的数据发送到串口中。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [STM32 HAL库串口+DMA空闲中断接收不定长数据](https://download.csdn.net/download/chenyongfeng123/13087603)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [【串口】STM32的串口使用(HAL库)](https://blog.csdn.net/lrqblack/article/details/126090379)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文