PS_Fgen_FW  4da88f4073c1cc65ea45c3a652a2751e495e50db
Firmware for an Power Supply and Function Generator build from an ATX power supply
Loading...
Searching...
No Matches
Device.h File Reference

Containing the main device class. More...

#include <Arduino.h>
#include <SPI.h>
#include <avr/eeprom.h>
#include <avr/io.h>
#include <stdbool.h>
#include "UserInputHandler/UserInputHandler.h"
#include "Screens/ScreenManager.h"
#include "Channels/Channel.h"
#include "Channels/DDS_Channel.h"
#include "Channels/PS_Channel.h"
#include "Channels/DMM_Channel.h"
#include "Configuration.h"

Go to the source code of this file.

Classes

struct  DeviceVoltagesStruct
 Structure containing all device ATX voltages. More...
 
struct  DeviceCalibrationFactors
 Structure containing all device calibration factors. More...
 
struct  DevSettingsEEPROMLayout
 Structure used internally to store to / read from EEPROM (except user waveforms and calibration factors) More...
 
class  DeviceClass
 Class holding all relevant sub system objects and settings. More...
 

Typedefs

typedef enum DeviceControlStates DeviceControlStates_t
 Available device control states.
 
typedef enum DevicePowerUpOutputEnabledStates DevicePowerUpOutputEnabledStates_t
 Available device power up output states.
 
typedef struct DeviceVoltagesStruct DeviceVoltages_t
 Structure containing all device ATX voltages.
 
typedef struct DeviceCalibrationFactors DeviceCalibrationFactors_t
 Structure containing all device calibration factors.
 
typedef struct DevSettingsEEPROMLayout DevSettingsEEPROMLayout_t
 Structure used internally to store to / read from EEPROM (except user waveforms and calibration factors)
 

Enumerations

enum  DeviceControlStates { DEV_CTRL_LOCAL , DEV_CTRL_REMOTE , DEV_CTRL_RWLOCK , NUM_DEV_CTRL_ELEMENTS }
 Available device control states. More...
 
enum  DevicePowerUpOutputEnabledStates { DEV_POWERUP_OUTPUTS_OFF , DEV_POWERUP_OUTPUTS_LASTSTATE , DEV_POWERUP_OUTPUTS_ON , NUM_DEV_POWERUP_ELEMENTS }
 Available device power up output states. More...
 

Variables

const char * DeviceControlStateNames [NUM_DEV_CTRL_ELEMENTS]
 Array holding the names for all available device control states.
 
const char * DevicePowerUpOutputEnabledStateNames [NUM_DEV_POWERUP_ELEMENTS]
 Array holding the names for all available output power up states.
 
DeviceClass Device
 Global DeviceClass instance used to access all device related methods and properties.
 

Detailed Description

Containing the main device class.

Date
06.12.2020 14:44:34
Author
Markus Scheich

Typedef Documentation

◆ DeviceControlStates_t

Available device control states.

Enumeration with all different device control states.

◆ DevicePowerUpOutputEnabledStates_t

Available device power up output states.

Enumeration with all available output states on power up.

Enumeration Type Documentation

◆ DeviceControlStates

Available device control states.

Enumeration with all different device control states.

Enumerator
DEV_CTRL_LOCAL 

Device is in local state.

Each key press is processed directly.

DEV_CTRL_REMOTE 

Device is in remote state.

The first key press is ignored and brings the device back to local state.

DEV_CTRL_RWLOCK 

Device is in RW lock state.

All keys are ignored. The user must actively change back to local state via SCPI commands to reactivate the keys.

NUM_DEV_CTRL_ELEMENTS 

The last element is used to determine the number of elements in the enumeration.

◆ DevicePowerUpOutputEnabledStates

Available device power up output states.

Enumeration with all available output states on power up.

Enumerator
DEV_POWERUP_OUTPUTS_OFF 

Switch off all outputs on power up.

DEV_POWERUP_OUTPUTS_LASTSTATE 

Switch all outputs to their last saved states on power up.

DEV_POWERUP_OUTPUTS_ON 

Switch on all outputs on power up.

NUM_DEV_POWERUP_ELEMENTS 

The last element is used to determine the number of elements in the enumeration.