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

Containing an implementation for a power supply channel. More...

#include "DAC_MCP492x.h"
#include "../Configuration.h"
#include "Channel.h"

Go to the source code of this file.

Classes

class  PS_Channel
 Power supply channel Class. More...
 

Typedefs

typedef enum PsRegulationModes PsRegulationModes_t
 Available power supply regulation modes.
 
typedef enum PsStates PsStates_t
 Available power supply states.
 

Enumerations

enum  PsRegulationModes { PS_REG_MODE_FIX , PS_REG_MODE_CV , NUM_PS_REG_MODE_ELEMENTS }
 Available power supply regulation modes. More...
 
enum  PsStates {
  PS_STATE_CV , PS_STATE_OVL , PS_STATE_OVP , PS_STATE_OCP ,
  PS_STATE_OPP , NUM_PS_STATE_ELEMENTS
}
 Available power supply states. More...
 

Variables

const char * PsRegulationModesNames []
 Array holding the names for all available PS channel regulation modes.
 
const char * PsStatesNames []
 Array holding the names for all available PS channel states.
 

Detailed Description

Containing an implementation for a power supply channel.

Date
23.09.2020 19:47:56
Author
Markus Scheich

Typedef Documentation

◆ PsRegulationModes_t

Available power supply regulation modes.

Enumeration with all power supply regulation modes.

◆ PsStates_t

typedef enum PsStates PsStates_t

Available power supply states.

Enumeration with all power supply states.

Enumeration Type Documentation

◆ PsRegulationModes

Available power supply regulation modes.

Enumeration with all power supply regulation modes.

Enumerator
PS_REG_MODE_FIX 

Power supply channel is not regulated (neither constant voltage nor constant current).

The requested voltage is set by the ADC without regarding the measured voltage.

PS_REG_MODE_CV 

Power supply channel is only constant voltage regulated (not constant current).

The voltage at the output is regulated to the requested one by comparison to the measured voltage.

NUM_PS_REG_MODE_ELEMENTS 

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

◆ PsStates

enum PsStates

Available power supply states.

Enumeration with all power supply states.

Enumerator
PS_STATE_CV 

Power supply state constant voltage.

PS_STATE_OVL 

Power supply state overload.

The channel isn't able to regulate the voltage (or current) to the desired value, because it is at it's limits and running in open-loop.

PS_STATE_OVP 

Power supply state over voltage protection.

PS_STATE_OCP 

Power supply state over current protection.

PS_STATE_OPP 

Power supply state over power protection.

NUM_PS_STATE_ELEMENTS 

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