|
|
@@ -0,0 +1,22 @@
|
|
|
+#include "tmsgheaders.h"
|
|
|
+
|
|
|
+#define PE43711_1_ADDR 0x1C
|
|
|
+#define PE43711_2_ADDR 0x20
|
|
|
+
|
|
|
+
|
|
|
+#define PE43711_ATTEN_0DB 0
|
|
|
+#define PE43711_ATTEN_025DB 1
|
|
|
+#define PE43711_ATTEN_05DB 2
|
|
|
+#define PE43711_ATTEN_1DB 4
|
|
|
+#define PE43711_ATTEN_2DB 8
|
|
|
+#define PE43711_ATTEN_4DB 16
|
|
|
+#define PE43711_ATTEN_8DB 32
|
|
|
+#define PE43711_ATTEN_16DB 64
|
|
|
+#define PE43711_ATTEN_3175DB 127
|
|
|
+
|
|
|
+
|
|
|
+void pe43711_att_1_init(void *bar1);
|
|
|
+void pe43711_att_2_init(void *bar1);
|
|
|
+
|
|
|
+void pe43711_att_1_set(void *bar1, uint8_t atten);
|
|
|
+void pe43711_att_2_set(void *bar1, uint8_t atten);
|