-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCIV.h
45 lines (39 loc) · 1.18 KB
/
CIV.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
///////////////////////////spin the encoder win a frequency!!////////////////////////////
//
// CIV.h
//
// Process CIV messages sent and received
//
#ifndef _CIV_H_
#define _CIV_H_
#include <Arduino.h>
#include "ICOM_IC-905_CIV.h"
#include "RadioConfig.h"
#include <CIVcmds.h> // https://github.com/K7MDL2/CIVmasterLib is my fork Icom CIV library https://github.com/WillyIoBrok/CIVmasterLib extended for the 905
#include <CIVmaster.h> // CIVcmds.h is automatically included in addition
void getradioInfo(void);
uint8_t check_CIV(uint32_t time_current_baseloop);
uint64_t FrequencyRequest(void);
void RcvCIVmsg(void);
void SendCIVmsg(void);
void civ_905_setup(void);
void pass_CAT_msgs_to_RADIO(void);
//void pass_CAT_msg_to_PC(void);
void show_CIV_log(void);
void civ_setup(uint32_t currentTime);
//radioModMode_t getModMode(void);
uint8_t getByteResponse(const uint8_t m_Counter, const uint8_t offset, const uint8_t buffer[]);
uint8_t getRadioMode(void);
#ifdef GPS
void pass_GPS(void);
#endif
const String retValStr[7] = {
"CIV_OK",
"CIV_OK_DAV",
"CIV_NOK",
"CIV_HW_FAULT",
"CIV_BUS_BUSY",
"CIV_BUS_CONFLICT",
"CIV_NO_MSG"
};
#endif //_CIV_H_