lots of stuff

This commit is contained in:
2025-08-26 16:10:47 -05:00
parent 372e4941a2
commit bbc9d6ae91
27 changed files with 1193 additions and 147 deletions

View File

@@ -24,12 +24,8 @@
#define DDC_MIN 270
#define DDC_MAX 300
#define TGT_NOT_USED 330
#define OUT_RELAY_OFF_MASK 0b11100111
//#define OUT_RELAY_OFF_MASK 0b11100111
#define PORT1A_ON 0b00001000
#define PORT1B_ON 0b00011000
#define PORT2A_ON 0b00000000
#define PORT2B_ON 0b00010000
#define XFRMR_HF_ON 0b00000010
#define HF_AMP_ON 0b01000000
@@ -94,6 +90,65 @@ typedef enum {
} RELAY_SELECT_t;
typedef enum
{
ACCY_PORT_INDUCTION = 0,
ACCY_PORT_1 = 1,
ACCY_PORT_2 = 2,
NUM_PORTS
} AccessoryPortId_t;
typedef enum
{
CHANNEL_A = 0,
CHANNEL_B,
NUM_CHANNELS
} AccyChannelId_t;
typedef struct
{
AccyChannelId_t id;
bool connected;
} AccessoryChannel_t;
typedef enum {
LOW_FREQ = 0,
HIGH_FREQ,
NUM_FREQ_RANGES,
} FrequencyRange_t;
typedef enum
{
POWER_LEVEL_0 = 0,
POWER_LEVEL_1,
POWER_LEVEL_2,
POWER_LEVEL_3,
POWER_LEVEL_4,
POWER_LEVEL_COUNT
} PowerLevel_t;
typedef enum
{
SIGNAL_PATH_NONE = 0,
SIGNAL_PATH_ANT,
SIGNAL_PATH_AMP,
} SignalPath_t;
typedef enum
{
AMPLIFIER_NONE = 0,
AMPLIFIER_D,
AMPLIFIER_AB,
} Amplifier_t;
typedef enum
{
TAP_1 = 1,
TAP_2,
TAP_3,
TAP_4,
} TransformerTap_t;
void Select_Estop(ESTOP_SELECT_t);
void Send_Pot_Data(uint16_t Data, SPI_MODE_t destination);
@@ -135,6 +190,7 @@ float32_t Get_Power_Limit(void);
bool Check_For_Clamp_New();
void delayms(uint32_t msec);
bool isUsbConnected(void);
#endif /* UTILS_H_ */