Data Structures | |
struct | KSMT_DESIGN |
struct | KSMT_MODULE |
Macros | |
#define | KSMT_DEFAULT_FLIP 670 |
#define | KSMT_DEFAULT_RFOFFSET 1200 |
#define | KSMT_DEFAULT_BW 150 |
#define | KSMT_DEFAULT_SPOILERAREA 5000 |
#define | KSMT_DEFAULT_RFDURATION 8000 |
#define | KSMT_DEFAULT_SSITIME 1000 /* try to reduce this value */ |
#define | KSMT_MODULE_LOADED |
#define | KSMT_INIT_DESIGN {KSMT_OFF, KSMT_RF_FERMI, KSMT_DEFAULT_FLIP, KSMT_DEFAULT_RFOFFSET, KSMT_DEFAULT_BW, KSMT_DEFAULT_RFDURATION, KSMT_DEFAULT_SPOILERAREA, KSMT_DEFAULT_SSITIME} |
#define | KSMT_INIT_MODULE {KS_INIT_BASE(KSMT_MODULE), KS_INIT_SEQ_CONTROL, KSMT_INIT_DESIGN, KS_INIT_RF, KS_INIT_TRAP, KS_NOTSET, 0, 0} |
Enumerations | |
enum | { KSMT_OFF, KSMT_ON } |
enum | { KSMT_RF_FERMI, KSMT_RF_BINO } |
Functions | |
void | ksmt_init_design (KSMT_DESIGN *design) |
STATUS | ksmt_eval_design (KSMT_MODULE *mt) |
STATUS | ksmt_pg (KSMT_MODULE *mt, int start_time, KS_SEQ_CONTROL *seqctrl_p) |
void | ksmt_set_design_from_UI (KSMT_DESIGN *design) |
Variables | |
KSMT_MODULE | ksmt = KSMT_INIT_MODULE |
float | ksmt_flip = KSMT_DEFAULT_FLIP with {0, 20000, KSMT_DEFAULT_FLIP, VIS, "RF flip angle [deg]",} |
int | ksmt_rftype = KSMT_RF_FERMI with {KSMT_RF_FERMI, KSMT_RF_BINO, KSMT_RF_FERMI, VIS, "RF type (0:fermi 1:bino)",} |
int | ksmt_bw = KSMT_DEFAULT_BW with {2, 100000, 300, VIS, "RF BW",} |
int | ksmt_rfduration = KSMT_DEFAULT_RFDURATION with {2, 10000, KSMT_DEFAULT_RFDURATION, VIS, "RF duration",} |
int | ksmt_rfoffset = KSMT_DEFAULT_RFOFFSET with {-10000, 10000, KSMT_DEFAULT_RFOFFSET, VIS, "RF freq offset [Hz]",} |
float | ksmt_spoilerarea = KSMT_DEFAULT_SPOILERAREA with {0, 10000, KSMT_DEFAULT_SPOILERAREA, VIS, "Spoiler area",} |
int | ksmt_ssi_time = KSMT_DEFAULT_SSITIME with {10, 20000, KSMT_DEFAULT_SSITIME, VIS, "Time from eos to ssi in intern trig",} |
#define KSMT_DEFAULT_FLIP 670 |
#define KSMT_DEFAULT_RFOFFSET 1200 |
#define KSMT_DEFAULT_BW 150 |
#define KSMT_DEFAULT_SPOILERAREA 5000 |
#define KSMT_DEFAULT_RFDURATION 8000 |
#define KSMT_DEFAULT_SSITIME 1000 /* try to reduce this value */ |
#define KSMT_MODULE_LOADED |
can be used to check whether the mt module has been included in a main psd
#define KSMT_INIT_DESIGN {KSMT_OFF, KSMT_RF_FERMI, KSMT_DEFAULT_FLIP, KSMT_DEFAULT_RFOFFSET, KSMT_DEFAULT_BW, KSMT_DEFAULT_RFDURATION, KSMT_DEFAULT_SPOILERAREA, KSMT_DEFAULT_SSITIME} |
#define KSMT_INIT_MODULE {KS_INIT_BASE(KSMT_MODULE), KS_INIT_SEQ_CONTROL, KSMT_INIT_DESIGN, KS_INIT_RF, KS_INIT_TRAP, KS_NOTSET, 0, 0} |
anonymous enum |
void ksmt_init_design | ( | KSMT_DESIGN * | design | ) |
[out] | design | pointer to the MT design |
STATUS | SUCCESS or FAILURE |
STATUS ksmt_eval_design | ( | KSMT_MODULE * | mt | ) |
[in,out] | mt | pointer to the module to be processed |
STATUS | SUCCESS or FAILURE |
STATUS ksmt_pg | ( | KSMT_MODULE * | mt, |
int | start_time, | ||
KS_SEQ_CONTROL * | seqctrl_p | ||
) |
If seqctrl_p is not NULL, it is assumed that the MT is generated within another sequence module, use start_time to control the positioning. The end_time field is set to be able to continue the pulse generation.
[in,out] | mt | pointer to the module to be processed |
[in] | start_time | time position for the start of the MT waveforms |
[in,out] | seqctrl_p | optional pointer to a sequence control for embedding |
STATUS | SUCCESS or FAILURE |
void ksmt_set_design_from_UI | ( | KSMT_DESIGN * | design | ) |
[out] | design | Pointer to a MT design |
STATUS | SUCCESS or FAILURE |
KSMT_MODULE ksmt = KSMT_INIT_MODULE |
float ksmt_flip = KSMT_DEFAULT_FLIP with {0, 20000, KSMT_DEFAULT_FLIP, VIS, "RF flip angle [deg]",} |
int ksmt_rftype = KSMT_RF_FERMI with {KSMT_RF_FERMI, KSMT_RF_BINO, KSMT_RF_FERMI, VIS, "RF type (0:fermi 1:bino)",} |
int ksmt_bw = KSMT_DEFAULT_BW with {2, 100000, 300, VIS, "RF BW",} |
int ksmt_rfduration = KSMT_DEFAULT_RFDURATION with {2, 10000, KSMT_DEFAULT_RFDURATION, VIS, "RF duration",} |
int ksmt_rfoffset = KSMT_DEFAULT_RFOFFSET with {-10000, 10000, KSMT_DEFAULT_RFOFFSET, VIS, "RF freq offset [Hz]",} |
float ksmt_spoilerarea = KSMT_DEFAULT_SPOILERAREA with {0, 10000, KSMT_DEFAULT_SPOILERAREA, VIS, "Spoiler area",} |
int ksmt_ssi_time = KSMT_DEFAULT_SSITIME with {10, 20000, KSMT_DEFAULT_SSITIME, VIS, "Time from eos to ssi in intern trig",} |