<re_irc>
<wembly> i'm looking to write a driver that needs an adc, and am trying to understand how to use an adc with embedded-hal, is there an example project somewhere that i can take a look at on how oneshot and channel work?
<re_irc>
<jacobrosenthal> wembly: most hals would have one just pick one. Atsamd. Nrf. Stm32
<re_irc>
<wembly> jacobrosenthal: that's for implementing it tho? how do i use it in a driver?
<re_irc>
<jacobrosenthal> Hals tend to have examples
<re_irc>
<dirbaio> I think they want it in a hal-independent driver
<re_irc>
<wembly> i'll check it out, tho the hals' ive looked at tend to have examples for using the hal not embedded-hal, but maybe i'm wrong 😅
<re_irc>
<wembly> i'm honestly surprised there is no driver for it yet
<re_irc>
<wembly> i think i'll just start off by writing it for stamd-hal, since i have hardware that uses it, then i'll attempt to make it more generic
<re_irc>
<dirbaio> also, input on what trait you tried, and how well it worked/not would be welcome in the ADC trait tracking issue :)
<re_irc>
<wembly> dirbaio: to be honest, i can't quite make heads or tails out of it enough to even get started
<re_irc>
<dirbaio> what's confusing you? the 0.2 traits?
<re_irc>
<firefrommoonlight> wembly: What's the device, and why embedded-hal? The EH traits are too general for effective ADC use
<re_irc>
<dirbaio> resistive touch screen
<re_irc>
<firefrommoonlight> Oops didn't read all the way
emerent has quit [Ping timeout: 244 seconds]
emerent has joined #rust-embedded
starblue has quit [Ping timeout: 258 seconds]
starblue has joined #rust-embedded
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #rust-embedded
explore has quit [Quit: Connection closed for inactivity]
<re_irc>
<Lachlan> firefrommoonlight: Because ADCs are generally read with DMA?
<re_irc>
<firefrommoonlight> It's a few things. There are usually a lot of device-specific options; continuous reading vs one-shot; how the reads are triggered; DMA (as you said)