Commit Graph

13 Commits

Author SHA1 Message Date
Harald Welte 3cfd61baa7 rfdsatt: Move to 1-based channel and stage numbers
This matches more with how SCPI controlled attenuators work
2021-05-07 12:22:28 +02:00
Harald Welte 627ead7b21 attenuator: Add convenience functions for setting all stages 2021-05-06 08:26:46 +02:00
Harald Welte 5d2e32e4b8 attenuator: rename functions to make them more descriptive 2021-05-06 08:20:03 +02:00
Harald Welte 6284afc23d attenuator: split out 'execution' from 'validation' part 2021-05-06 08:16:18 +02:00
Harald Welte e431886969 attenuator: disable GPIO debugging 2021-05-05 23:00:14 +02:00
Harald Welte 7b684307f7 attenuator: Fix stored/cached value per attenuator 2021-05-05 23:00:14 +02:00
Harald Welte abfceb45f5 attenuator: set initial state of outputs to 'low'
otherwise they might be high, which means the latch is permanently
enabled.
2021-04-13 19:02:20 +02:00
Harald Welte f025e64a57 attenuator: Print level at time of write. 2021-04-13 17:21:04 +02:00
Harald Welte 2a91fc857b attenuator.c: DAT-31A-S+ has 6th unused bit
So In reality DAT-31A-S+ seems to have steps of 0.5dB, but the LSB
is "defined" to be alwasy 0.  This means we have to multiply the
dB value by 2 (shift one left) to make sure the LSB in 0.5dB steps
remains 0, and to make sure we actually step n steps of 1dB
2021-04-13 17:19:08 +02:00
Harald Welte 645ed3a795 WIP: support for STM32F051 in addition to STM32F103
Related: SYS#5410
2021-03-28 18:43:25 +02:00
Harald Welte f962556911 integrate microvty 2021-03-28 16:16:16 +02:00
Harald Welte 77eda9fcb7 rfdn: add systick 2021-03-28 12:16:21 +02:00
Harald Welte 9b21fe50db WIP: add librfn 2021-03-28 12:14:44 +02:00