Open Cightline opened 3 years ago
I take it this is via the DIO0
pin? To receive both it looks like you'll need to switch the DIO0
mapping in RegDioMapping1
from RxDone
(0b00
) to TxDone
(0b01
) between operations (after enabling RxReady
and/or TxReady
IRQs in RegIrqFlags1
).
(It'd be neat to have an API for this in the driver if there's a reasonable way of representing it)
(from the datasheet here
Very helpful response, and yeah it's DIO0
pin, I'll try out what you wrote and bring the results back here so we can potentially figure out an API.
Busy with IRL stuff, I recommend leaving this open but it may be months before I'm able to address it.
yeah no stress, useful to leave it open for whomsoever gets to it first ^_^
I can't seem to get the
TX_DONE
interrupt to fire, however theRX_DONE
interrupt works fine.My code currently operates like so:
TX_DONE
interrupt should fire, but it doesn't, I currently have to poll.RX_DONE
interrupt fires, no polling needed.I'm using RTIC and embedded-hal/atsamd-hal. The code is here