-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoldatom.h
76 lines (62 loc) · 2.02 KB
/
coldatom.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#ifndef _COLDATOM_H_
#define _COLDATOM_H_
#include "mbed.h"
#include "Drivers/MAX11300/max11300.h"
#include "Drivers/AD5781/AD5781.h"
// using drivers::max11300::MAX11300;
// using drivers_AD::ad5781::AD5781;
class COLDATOM
{
public:
// Constructor
COLDATOM(bool ready = true);
// Functions
void initialize();
void reset();
void run();
void precomp();
void precomp_optimise(float detuning_, float atte_);
void PGC();
void PGC_OPT();
void MOT_Temp();
void MOT_Load();
void drop_test();
void diagnostic();
void interrogate();
void detection();
double fraction(bool print_data);
void experimental();
double clock_sequence();
void clock_operation();
void rabi();
void rabi_flopping();
void cooling_light(bool state_, float detuning_, float power_);
void repump_light(bool state_, float detuning_, float power_);
// Variables
bool ready;
double pd_fraction_;
uint16_t atom_number_;
// Analog Outputs
drivers::max11300::MAX11300::MAX11300_Ports AOM_1_FREQ_;
drivers::max11300::MAX11300::MAX11300_Ports AOM_1_ATTE_;
drivers::max11300::MAX11300::MAX11300_Ports AOM_2_FREQ_;
drivers::max11300::MAX11300::MAX11300_Ports AOM_2_ATTE_;
drivers::max11300::MAX11300::MAX11300_Ports AOM_3_FREQ_;
drivers::max11300::MAX11300::MAX11300_Ports AOM_3_ATTE_;
drivers::max11300::MAX11300::MAX11300_Ports C_FIELD_MOD_;
drivers::max11300::MAX11300::MAX11300_Ports u_WAVE_AMP_;
drivers::max11300::MAX11300::MAX11300_Ports u_WAVE_FREQ_;
// Analog Inputs
drivers::max11300::MAX11300::MAX11300_Ports PD_1_;
drivers::max11300::MAX11300::MAX11300_Ports PD_2_;
// Ramp Definitions
drivers::max11300::MAX11300::RampAction PGC_Ramp;
drivers::max11300::MAX11300::RampAction OPT_Ramp;
drivers::max11300::MAX11300::RampAction C_FIELD_Ramp;
// protected:
BurstSPI MAX11300_SPI;
drivers::max11300::MAX11300 MAX11300;
SPI AD5781_SPI;
drivers_AD::ad5781::AD5781 AD5781;
};
#endif // _COLDATOM_H_