ChanServ changed the topic of #rust-embedded to: Welcome to the Rust Embedded IRC channel! Bridged to #rust-embedded:matrix.org and logged at https://libera.irclog.whitequark.org/rust-embedded, code of conduct at https://www.rust-lang.org/conduct.html
nex8192 has left #rust-embedded [Error from remote client]
broderick[m] has joined #rust-embedded
<broderick[m]> I'm looking to write a driver for a peripheral that would need a I/O pin that can switch between an input and output. The IoPin trait looks to have been dropped after e-h 0.2.7; what is the suggested way to handle this generically with the 1.0.0 prereleases?
<adamgreig[m]> See https://github.com/rust-embedded/embedded-hal/issues/397 for the discussion about it
emerent has quit [Ping timeout: 260 seconds]
emerent has joined #rust-embedded
IlPalazzo-ojiisa has quit [Quit: Leaving.]
tiwalun[m] has quit [Quit: Idle timeout reached: 172800s]
AdamHott[m] has quit [Quit: Idle timeout reached: 172800s]
stensonb[m] has joined #rust-embedded
<stensonb[m]> Silly, basic electronic question... I'm looking to read an analog knob potentiometer (via ADC, I think)...why would I choose 10k over 100k, or 1M ohm here....the circuit with the pot has no other load...and would be in series from vcc to the pin. If they all have the same physical travel, wouldn't they all scale the voltage identically?
<marmrt[m]> Your ADC will have some input impedance that might skew the measurement somewhat at very high resistances.
<marmrt[m]> Is it an application where saving a milliamp matters?
barnabyw[m] has joined #rust-embedded
<barnabyw[m]> not sure what you mean by “in series from vcc to the pin”, usually you’d have the pot set up as a voltage divider with the wiper connected to the ADC pin for that use-case. So the whole resistance of the pot is connected between +va and 0v, and sees a constant current flow of +va/r
<barnabyw[m]> so with a +va of 3.3v and a 10k pot, there’s a constant 0.3mA current flowing through the pot, which you’re unlikely to notice unless you require extremely low power consumption
<stensonb[m]> No real need to save milliamps...yeah, I was trying to explain I'll have nothing else with the pot...just +va, 0v, and the divider output.
<stensonb[m]> Ah...so I have to make sure my chip can register voltage with such low current (if using 10k pot)
<barnabyw[m]> I don’t know of any general-purpose ADC which would have trouble with a 10k or 100k pot, typically they have an extremely high input impedance and can be understood to not consume any current (unless you’re worried about picoamps)
<stensonb[m]> Would the chip spec sheet have this detail for their ADC support (minimum current requirements)?
<marmrt[m]> Yeah, you should have Input Impedance or Input Current listed in an Electrical Characteristics chapter somewhere
nex8192 has joined #rust-embedded
nex8192 is now known as Guest7282
Guest7282 has left #rust-embedded [#rust-embedded]
starblue has quit [Ping timeout: 256 seconds]
nihalpasham[m] has quit [Quit: Idle timeout reached: 172800s]
starblue has joined #rust-embedded
LiamKinne[m] has joined #rust-embedded
<LiamKinne[m]> Hey all, does anyone know of a no-std compatible toml parser?
K900 has quit [Quit: Idle timeout reached: 172800s]
fu5ha[m] has quit [Quit: Idle timeout reached: 172800s]
chrysn[m] has quit [Quit: Idle timeout reached: 172800s]
t-moe[m] has quit [Quit: Idle timeout reached: 172800s]
_whitelogger has joined #rust-embedded
<Ecco> I have a questionr regarding Embassy, and more specifically it's HAL
<Ecco> In this sample code (https://github.com/embassy-rs/embassy/blob/main/examples/stm32wba/src/bin/blinky.rs), we configure PB4 as an output pin
<Ecco> Question-> How does it know to enable the appropriate bit in the RCC register?
<Ecco> Second question -> What if I temporarily want to gate clocks on GPIOs and manually change the RCC register?
IlPalazzo-ojiisa has joined #rust-embedded
IlPalazzo-ojiisa has quit [Quit: Leaving.]
_whitelogger has joined #rust-embedded
Guest7282 has joined #rust-embedded
<Ecco> Third question: does Embassy support the radio on STM32WBA?
juliand[m] has joined #rust-embedded
<juliand[m]> Also, there is another matrix chat for embassy, you might get more help there: https://matrix.to/#/#embassy-rs:matrix.org
<juliand[m]> Not sure if/how you could call the disable function, never tried that. But you can usually go the "manual" way through the PAC (https://docs.embassy.dev/stm32-metapac/git/stm32h743zi/rcc/struct.Rcc.html) if anything is not implemented in the HAL, yet.
IlPalazzo-ojiisa has quit [Quit: Leaving.]
Guest7282 has left #rust-embedded [Error from remote client]
burrbull[m] has quit [Quit: Idle timeout reached: 172800s]
m5zs7k has quit [Ping timeout: 255 seconds]
m5zs7k has joined #rust-embedded
Guest7282 has joined #rust-embedded
IlPalazzo-ojiisa has joined #rust-embedded
Guest7282 has left #rust-embedded [Error from remote client]
StephenD[m] has quit [Quit: Idle timeout reached: 172800s]
vollbrecht[m] has quit [Quit: Idle timeout reached: 172800s]
Guest7282 has joined #rust-embedded
Guest7282 has left #rust-embedded [Error from remote client]
danielb[m] has quit [Quit: Idle timeout reached: 172800s]
thejpster[m] has quit [Quit: Idle timeout reached: 172800s]
JamesSizeland[m] has quit [Quit: Idle timeout reached: 172800s]
loki_val has quit []
sknebel has quit [Ping timeout: 256 seconds]
sknebel has joined #rust-embedded