123

Dependencies:   mbed

Fork of LG by igor Apu

DevicePLCS.h

Committer:
Diletant
Date:
2016-05-09
Revision:
156:e68ee0bcdcda
Parent:
149:abbf7663d27d
Child:
161:efd949e8d536

File content as of revision 156:e68ee0bcdcda:

#ifndef __DEVICE_PLCS_H__
#define __DEVICE_PLCS_H__

typedef struct _DevicePathLengthControlAmplifierSettings {
  uint32_t reference; //Reference voltage
  uint32_t gain;      //Amplifier gain
} DevicePathLengthControlAmplifierSettings;

typedef struct _DevicePathLengthControlAmplifier {
  DevicePathLengthControlAmplifierSettings settings;
} DevicePathLengthControlAmplifier;

typedef struct _DevicePathLengthControlSystemSettings {
} DevicePathLengthControlSystemSettings;

typedef struct _DevicePathLengthControlSystemState {
  uint8_t loop;
  uint8_t modulation;
} DevicePathLengthControlSystemState;

typedef struct _DevicePathLengthControlSystem {
  DevicePathLengthControlSystemSettings settings;
  DevicePathLengthControlSystemState state;
  DevicePathLengthControlAmplifier amplifier;
} DevicePathLengthControlSystem;

void InitPathLengthControlSystemWithDefaults(void);
void InitPathLengthControlSystem(void);
void StartPathLengthControlSystem(void);

#endif  /* __DEVICE_PLCS_H__ */