stm32-rs / fdcan

FDCAN peripheral driver for STM32 chips
Apache License 2.0
12 stars 14 forks source link

transmit_preserve pending data parameter as u8 slice? #53

Open projectgus opened 2 months ago

projectgus commented 2 months ago

(Sorry for the sudden flurry of posts)

I was wondering if a PR to change the u32 slice in the transmit_preserve callback to a u8 would be acceptable? i.e. PTX: FnMut(Mailbox, TxFrameHeader, &[u32]) -> P, to PTX: FnMut(Mailbox, TxFrameHeader, &[u8]) -> P,

It would be a breaking change, but it would bring the API in line with the other data parameters which are all &[u8]s.