Skip to content

Commit

Permalink
Changing to filtered and exposing clraux as a function (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwdepatie committed Jun 9, 2024
1 parent 8fadc44 commit 75d62f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions general/include/ltc68041.h
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ uint8_t LTC6804_rdcv(ltc_config *config, uint8_t reg, uint8_t total_ic,
int8_t LTC6804_rdaux(ltc_config *config, uint8_t reg, uint8_t nIC,
uint16_t aux_codes[][6]);

void LTC6804_clraux(ltc_config *config);

void LTC6804_wrcfg(ltc_config *config, uint8_t nIC, uint8_t data_config[][6]);

int8_t LTC6804_rdcfg(ltc_config *config, uint8_t nIC, uint8_t r_config[][8]);
Expand Down
2 changes: 1 addition & 1 deletion general/src/ltc68041.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void LTC6804_initialize(ltc_config* conf, SPI_HandleTypeDef *hspi, GPIO_TypeDef
HAL_GPIO_WritePin(conf->gpio, conf->cs_pin, GPIO_PIN_SET);

// TODO make sure shepherd app configures ADC with these settings:
set_adc(MD_NORMAL,DCP_DISABLED,CELL_CH_ALL,AUX_CH_ALL);
set_adc(MD_FILTERED,DCP_DISABLED,CELL_CH_ALL,AUX_CH_ALL);
}

/*!*******************************************************************************************************************
Expand Down

0 comments on commit 75d62f9

Please sign in to comment.