<bpye>
My hunch is no - but can anyone think how you could parameterise https://gist.github.com/benpye/d200aaf14726b31e5062920dec0dfb6c based on MAX_INPUT/MAX_OUTPUT, so that the register clobbers would be accurate for the given in/out size? It's not super critical, but I suspect not wiping out most of my registers each time I want to use it would be
<bpye>
beneficial
<bpye>
Well, I guess I could use a macro to generate all 256 possible cases in a match statement and then force inlining, but it would be nice if there was a better option
<dirbaio[m]>
yeah, you'll have to use macros...
<dirbaio[m]>
I don't htink it's possible otherwise
<JonathanDickinso>
In other words, sub_addr is the same thing as an register in idiomatic I2C
M9names[m] has joined #rust-embedded
<M9names[m]>
I think you're correct in that it's strange nomenclature, but not what the meaning is.
<M9names[m]>
My current understanding of this boufallo i2c controller is that you're supposed to batch together multiple messages inside the buffer, so it kinda maps to the e-h i2c transaction.
<M9names[m]>
So sub address is the device address for a read or write inside the current batch of operations.
<M9names[m]>
I did add an issue for it for bl602-hal, which looks to the impls in the various C SDK.
<jessebraham[m]>
<TomB[m]> "Is volvo using Rust in their..." <- IIRC they were using `atsamd-hal`
<jessebraham[m]>
Or at the very least they were using some ATMEL (Microchip?) device with an open-source Rust HAL haha, I never actually heard them explicitly say which lib
Foxyloxy has quit [Read error: Connection reset by peer]
Foxyloxy has joined #rust-embedded
Guest7221 has left #rust-embedded [Error from remote client]
crabbedhaloablut has quit []
danielb[m] has joined #rust-embedded
<danielb[m]>
80% of my build times are in codegen because I like my binaries unnecessarily small. The rest of time rustc tries to cope with ~400 crates of dependency tree, more or less perfectly well feeding my 4-6 cores. I'm not hoping from much gain from this :)
<danielb[m]>
s/from/for/
IlPalazzo-ojiisa has quit [Remote host closed the connection]
dne has quit [Remote host closed the connection]
dne has joined #rust-embedded
Guest7221 has joined #rust-embedded
Guest7221 has left #rust-embedded [Error from remote client]