almusil / rfm69

A generic rust driver to support RFM69 family wireless chips.
Apache License 2.0
9 stars 9 forks source link

High Power #16

Closed Cightline closed 3 years ago

Cightline commented 3 years ago

Let me know if you see any problems. I added a rough example to the examples directory.

Cightline commented 3 years ago

Ok I'm also going to add a PowerMode enum because it's difficult trying to appeal to everybody with one send and recv function. For example: the send function reverts the module back to Mode::Standby which could be reset back to Mode::Sleep instead, or it could be kept in Mode::Transmitter.

almusil commented 3 years ago

Can you please rebase your change? As it seems that there are few conflicts.

Cightline commented 3 years ago

Can you please rebase your change? As it seems that there are few conflicts.

I think I'm about done making changes for the high power stuff, I did try to merge/rebase on my computer but the new large packet commit was causing issues. I gotta work on some other things today so I'll get back to it later, ignore the pushes that came to this pull request for now. If I haven't mentioned it before my code spacing looks weird on Github, I'll try to adjust that in my IDE to make it more readable.

power_mode