fabic has quit [Ping timeout: 245 seconds]
darknighte has quit [Ping timeout: 260 seconds]
dreamcat4 has quit [Ping timeout: 252 seconds]
dreamcat4 has joined #rust-embedded
darknighte has joined #rust-embedded
PyroPeter has quit [Ping timeout: 265 seconds]
PyroPeter has joined #rust-embedded
fabic has joined #rust-embedded
troth has quit [Ping timeout: 252 seconds]
troth has joined #rust-embedded
fabic has quit [Ping timeout: 245 seconds]
troth has quit [Ping timeout: 252 seconds]
troth has joined #rust-embedded
starblue1 has quit [Quit: WeeChat 3.0]
fabic has joined #rust-embedded
fabic has quit [Ping timeout: 252 seconds]
flatwhatson has quit [Remote host closed the connection]
fabic has joined #rust-embedded
fabic has quit [Ping timeout: 260 seconds]
<re_irc> <@gauteh:matrix.org> if i want to set serveral bits in a register, should i modify them all within the write(|w| ..) closure? Or will only the last one take effect then?
<re_irc> <@gauteh:matrix.org> w.smod1type().i2c_master();
<re_irc> <@gauteh:matrix.org> });
<re_irc> <@gauteh:matrix.org> e.g.: ``` iom.submodctrl.write(|w| {
<re_irc> <@gauteh:matrix.org> w.smod1en().set_bit()
loki_val has quit [Remote host closed the connection]
<re_irc> <@9names:matrix.org> you usually want the .modify() function though
<re_irc> <@9names:matrix.org> inside the closure, all will take effect.
<re_irc> <@gauteh:matrix.org> Rooms
<re_irc> <@gauteh:matrix.org> yeled
<re_irc> <@gauteh:matrix.org> 
<re_irc> <@gauteh:matrix.org> People
crabbedhaloablut has joined #rust-embedded
<re_irc> <@9names:matrix.org> write will mean w starts with the reset value for the register.
<re_irc> <@9names:matrix.org> modify means it starts with the current value of the register
<re_irc> <@9names:matrix.org> the embedded book has more info on this, if you haven't seen it.
<re_irc> <@gauteh:matrix.org> ok
<re_irc> <@gauteh:matrix.org> within modify or write, will setting the fields be atmoic.. i.e. the same as setting the entire register to the computed value
<re_irc> <@9names:matrix.org> the value isn't written to the register until the end of the closure
<re_irc> <@gauteh:matrix.org> Ok. Great, thanks
fabic has joined #rust-embedded
fabic has quit [Ping timeout: 252 seconds]
fabic has joined #rust-embedded
fabic has quit [Ping timeout: 245 seconds]
vancz has quit [Quit: vancz]
vancz has joined #rust-embedded
fabic has joined #rust-embedded
fabic has quit [Ping timeout: 252 seconds]
dreamcat4 has quit [Ping timeout: 245 seconds]
dreamcat4 has joined #rust-embedded
emerent_ has joined #rust-embedded
emerent has quit [Killed (molybdenum.libera.chat (Nickname regained by services))]
emerent_ is now known as emerent
<re_irc> <@newam:matrix.org> adamgreig: I am not sure if notifications get sent for draft PRs. I opened an RFC here for cortex-m on-target testing: https://github.com/rust-embedded/cortex-m/pull/355
<re_irc> <@adamgreig:matrix.org> I'm afk this weekend but will have a look tomorrow evening, thanks!
GenTooMan has quit [Ping timeout: 250 seconds]
GenTooMan has joined #rust-embedded