]>
Commit | Line | Data |
---|---|---|
1defcf60 | 1 | #include "protocols.h" |
496bb4be | 2 | #include <stdint.h> |
3606ac0a | 3 | |
4 | // ATA55xx shared presets & routines | |
5 | uint32_t GetT55xxClockBit(uint32_t clock) { | |
6 | switch (clock) { | |
7 | case 128: | |
8 | return T55x7_BITRATE_RF_128; | |
9 | case 100: | |
10 | return T55x7_BITRATE_RF_100; | |
11 | case 64: | |
12 | return T55x7_BITRATE_RF_64; | |
13 | case 50: | |
14 | return T55x7_BITRATE_RF_50; | |
15 | case 40: | |
16 | return T55x7_BITRATE_RF_40; | |
17 | case 32: | |
18 | return T55x7_BITRATE_RF_32; | |
19 | case 16: | |
20 | return T55x7_BITRATE_RF_16; | |
21 | case 8: | |
22 | return T55x7_BITRATE_RF_8; | |
23 | default: | |
24 | return 0; | |
25 | } | |
26 | } |