Skip to content
Snippets Groups Projects
Commit dd9eb1a7 authored by Michael DM Dryden's avatar Michael DM Dryden
Browse files

Refactor: change pot_exp_start to volt_exp_start

parent 476d6da2
Branches
Tags
No related merge requests found
......@@ -184,7 +184,7 @@ void pot_set_gain(void){
}
}
void pot_exp_start(void){
void volt_exp_start(void){
/**
* Connects measurement cell to rest of circuit.
*/
......@@ -283,7 +283,7 @@ void lsv_experiment(int16_t start, int16_t stop, uint16_t slope, int8_t first_ru
max5443_set_voltage1(dacindex_start);
if (first_run == 1 || first_run == 2){
pot_exp_start();
volt_exp_start();
ads1255_rdatac();
tc_enable(&TCC1);
......@@ -442,7 +442,7 @@ void chronoamp(uint16_t steps, uint16_t step_dac[], uint16_t step_seconds[]){
tc_set_cca_interrupt_level(&TCC0, TC_INT_LVL_HI);
TCC0.CNT = 0;
pot_exp_start();
volt_exp_start();
for (uint8_t i = 0; i < steps; ++i)
{
......@@ -565,7 +565,7 @@ void swv_experiment(int16_t start, int16_t stop, uint16_t step, uint16_t pulse_h
ads1255_rdatac();
ads1255_sync();
pot_exp_start();
volt_exp_start();
TCF0.CNT = 0;
while (!tc_is_overflow(&TCF0));
ads1255_wakeup();
......
......@@ -71,7 +71,7 @@ extern uint8_t autogain_enable;
void pot_init(void);
void pot_set_gain(void);
void pot_exp_start(void);
void volt_exp_start(void);
void pot_exp_stop(void);
void cv_experiment(int16_t v1, int16_t v2, int16_t start, uint8_t scans, uint16_t slope);
void lsv_experiment(int16_t start, int16_t stop, uint16_t slope, int8_t first_run);
......
......@@ -19,7 +19,7 @@ int8_t autogainswitch(void);
void menu(uint8_t selection);
//void pot_set_gain(/*uint8_t*/ potgain_t gain);
//void pot_LP(uint8_t lponoff);
void pot_exp_start(void);
void volt_exp_start(void);
void pot_exp_stop(void);
void sw_test(uint16_t frequency);
void lsv_experiment(int16_t start, int16_t stop, uint16_t slope, int8_t first_run);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment