Instrument Neutral Distributed Interface INDI 2.2.5
Classes | Macros | Typedefs | Enumerations | Functions
celestron_dewpower_auxproto.h File Reference
#include <vector>
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Classes

class  AUXCommand
 

Macros

#define CAUX_DEFAULT_IP   "1.2.3.4"
 
#define CAUX_DEFAULT_PORT   2000
 

Typedefs

typedef std::vector< uint8_t > AUXBuffer
 

Enumerations

enum  AUXCommands {
  PORTCTRL_GET_INPUT_POWER = 0x00 , PORTCTRL_SET_POWER_ENABLED = 0x01 , PORTCTRL_GET_POWER_ENABLED = 0x02 , PORTCTRL_SET_EXT_CURRENT_LIMIT = 0x03 ,
  PORTCTRL_GET_EXT_CURRENT_LIMIT = 0x04 , PORTCTRL_GET_NUMBER_OF_PORTS = 0x10 , PORTCTRL_GET_PORT_INFO = 0x11 , PORTCTRL_GET_DH_PORT_INFO = 0x12 ,
  PORTCTRL_RESET_FUSE = 0x13 , PORTCTRL_SET_PORT_ENABLED = 0x14 , PORTCTRL_SET_PORT_VOLTAGE = 0x15 , PORTCTRL_DH_ENABLE_AUTO = 0x16 ,
  PORTCTRL_DH_ENABLE_MANUAL = 0x17 , PORTCTRL_GET_ENVIRONMENT = 0x18 , PORTCTRL_ENABLE_SELF_HEATER = 0x19 , PORTCTRL_SELF_HEATER_STATUS = 0x1A ,
  PORTCTRL_GET_HEATER_LEVEL = 0x1B , PORTCTRL_FACTORY_RESET = 0xAA , PORTCTRL_GET_VERSION = 0xFE , PORTCTRL_SET_LED_BRIGHTNESS = 0x20 ,
  PORTCTRL_GET_LED_BRIGHTNESS = 0x21 , PORTCTRL_NAK = 0xF0
}
 
enum  AUXTargets { HC = 0x04 , APP = 0x20 , DEW_POWER_CTRL = 0x17 }
 

Functions

void logBytes (unsigned char *buf, int n, const char *deviceName, uint32_t debugLevel)
 

Macro Definition Documentation

◆ CAUX_DEFAULT_IP

#define CAUX_DEFAULT_IP   "1.2.3.4"

Definition at line 79 of file celestron_dewpower_auxproto.h.

◆ CAUX_DEFAULT_PORT

#define CAUX_DEFAULT_PORT   2000

Definition at line 80 of file celestron_dewpower_auxproto.h.

Typedef Documentation

◆ AUXBuffer

typedef std::vector<uint8_t> AUXBuffer

Definition at line 30 of file celestron_dewpower_auxproto.h.

Enumeration Type Documentation

◆ AUXCommands

Enumerator
PORTCTRL_GET_INPUT_POWER 
PORTCTRL_SET_POWER_ENABLED 
PORTCTRL_GET_POWER_ENABLED 
PORTCTRL_SET_EXT_CURRENT_LIMIT 
PORTCTRL_GET_EXT_CURRENT_LIMIT 
PORTCTRL_GET_NUMBER_OF_PORTS 
PORTCTRL_GET_PORT_INFO 
PORTCTRL_GET_DH_PORT_INFO 
PORTCTRL_RESET_FUSE 
PORTCTRL_SET_PORT_ENABLED 
PORTCTRL_SET_PORT_VOLTAGE 
PORTCTRL_DH_ENABLE_AUTO 
PORTCTRL_DH_ENABLE_MANUAL 
PORTCTRL_GET_ENVIRONMENT 
PORTCTRL_ENABLE_SELF_HEATER 
PORTCTRL_SELF_HEATER_STATUS 
PORTCTRL_GET_HEATER_LEVEL 
PORTCTRL_FACTORY_RESET 
PORTCTRL_GET_VERSION 
PORTCTRL_SET_LED_BRIGHTNESS 
PORTCTRL_GET_LED_BRIGHTNESS 
PORTCTRL_NAK 

Definition at line 32 of file celestron_dewpower_auxproto.h.

◆ AUXTargets

enum AUXTargets
Enumerator
HC 
APP 
DEW_POWER_CTRL 

Definition at line 66 of file celestron_dewpower_auxproto.h.

Function Documentation

◆ logBytes()

void logBytes ( unsigned char *  buf,
int  n,
const char *  deviceName,
uint32_t  debugLevel 
)

Definition at line 44 of file celestron_dewpower_auxproto.cpp.