Embedded Driver with UART

⚓ Rust    📅 2026-01-31    👤 surdeus    👁️ 1      

surdeus

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Embedded Driver with UART

Hey,

I wanted to write a driver for a lidar sensor in the context of the embedded HAL async. The driver should be passed a UART. It appears that there is nothing for a UART in the embedded HAL async and you have to use embedded IO async. Are there any examples anywhere that can be used for guidance? For I2C, for example, there is quite a lot to be found. In my current project, I am using the embassy_nrf crate for my hardware abstraction. It seems as if no traits from embedded IO async are used in the embassy_nrf UART module. I'm a little confused about what the idiomatic way is to write a driver with UART in the Rust embedded ecosystem.

Thanks in advance.

1 post - 1 participant

Read full topic

🏷️ Rust_feed