mirror of
https://github.com/g4klx/MMDVM_HS.git
synced 2026-01-20 07:20:20 +01:00
Adding support for ADF7021N version
This commit is contained in:
parent
35ec7fdbd1
commit
79909602d8
21
ADF7021.h
21
ADF7021.h
|
|
@ -98,12 +98,6 @@ www.analog.com/media/en/technical-documentation/data-sheets/ADF7021.pdf
|
|||
#define AFC_OFFSET_P25 0
|
||||
#endif
|
||||
|
||||
// Slicer threshold for 4FSK demodulator (REG 13)
|
||||
#define ADF7021_SLICER_TH_DSTAR 0U
|
||||
#define ADF7021_SLICER_TH_DMR 54U
|
||||
#define ADF7021_SLICER_TH_YSF 75U
|
||||
#define ADF7021_SLICER_TH_P25 52U
|
||||
|
||||
/****** Support for 19.6800 MHz TCXO (original RF7021SE boards) ******/
|
||||
#elif defined(ADF7021_19_6800)
|
||||
|
||||
|
|
@ -168,12 +162,6 @@ www.analog.com/media/en/technical-documentation/data-sheets/ADF7021.pdf
|
|||
#define AFC_OFFSET_P25 0
|
||||
#endif
|
||||
|
||||
// Slicer threshold for 4FSK demodulator (REG 13)
|
||||
#define ADF7021_SLICER_TH_DSTAR 0U
|
||||
#define ADF7021_SLICER_TH_DMR 54U
|
||||
#define ADF7021_SLICER_TH_YSF 75U
|
||||
#define ADF7021_SLICER_TH_P25 52U
|
||||
|
||||
/****** Support for 12.2880 MHz TCXO ******/
|
||||
#elif defined(ADF7021_12_2880)
|
||||
|
||||
|
|
@ -238,12 +226,19 @@ www.analog.com/media/en/technical-documentation/data-sheets/ADF7021.pdf
|
|||
#define AFC_OFFSET_P25 0
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// Slicer threshold for 4FSK demodulator (REG 13)
|
||||
#if defined(ADF7021_N_VER)
|
||||
#define ADF7021_SLICER_TH_DSTAR 0U
|
||||
#define ADF7021_SLICER_TH_DMR 47U
|
||||
#define ADF7021_SLICER_TH_YSF 63U
|
||||
#define ADF7021_SLICER_TH_P25 43U
|
||||
#else
|
||||
#define ADF7021_SLICER_TH_DSTAR 0U
|
||||
#define ADF7021_SLICER_TH_DMR 54U
|
||||
#define ADF7021_SLICER_TH_YSF 75U
|
||||
#define ADF7021_SLICER_TH_P25 52U
|
||||
|
||||
#endif
|
||||
|
||||
#define bitRead(value, bit) (((value) >> (bit)) & 0x01)
|
||||
|
|
|
|||
Loading…
Reference in a new issue