Skip to content

Commit

Permalink
Update virtual_harvester.c
Browse files Browse the repository at this point in the history
  • Loading branch information
orgua committed Jun 1, 2023
1 parent cd1374b commit d3c845b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions software/firmware/pru0-shepherd-fw/virtual_harvester.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ static uint32_t power_last_raw = 0u; // adc_mp
static const volatile struct HarvesterConfig *cfg;

// to be used with harvester-frontend
static void harvest_adc_2_ivcurve(struct SampleBuffer *const buffer, const uint32_tsample_idx);
static void harvest_adc_2_isc_voc(struct SampleBuffer *const buffer, const uint32_tsample_idx);
static void harvest_adc_2_cv(struct SampleBuffer *const buffer, const uint32_tsample_idx);
static void harvest_adc_2_mppt_voc(struct SampleBuffer *const buffer, const uint32_tsample_idx);
static void harvest_adc_2_mppt_po(struct SampleBuffer *const buffer, const uint32_tsample_idx);
static void harvest_adc_2_ivcurve(struct SampleBuffer *const buffer, const uint32_t sample_idx);
static void harvest_adc_2_isc_voc(struct SampleBuffer *const buffer, const uint32_t sample_idx);
static void harvest_adc_2_cv(struct SampleBuffer *const buffer, const uint32_t sample_idx);
static void harvest_adc_2_mppt_voc(struct SampleBuffer *const buffer, const uint32_t sample_idx);
static void harvest_adc_2_mppt_po(struct SampleBuffer *const buffer, const uint32_t sample_idx);

// to be used in virtual harvester (part of emulator)
static void harvest_ivcurve_2_cv(uint32_t *constp_voltage_uV, uint32_t *constp_current_nA);
static void harvest_ivcurve_2_mppt_voc(uint32_t *constp_voltage_uV, uint32_t *constp_current_nA);
static void harvest_ivcurve_2_mppt_po(uint32_t *constp_voltage_uV, uint32_t *constp_current_nA);
static void harvest_ivcurve_2_mppt_opt(uint32_t *constp_voltage_uV, uint32_t *constp_current_nA);
static void harvest_ivcurve_2_cv(uint32_t *const p_voltage_uV, uint32_t *const p_current_nA);
static void harvest_ivcurve_2_mppt_voc(uint32_t *const p_voltage_uV, uint32_t *const p_current_nA);
static void harvest_ivcurve_2_mppt_po(uint32_t *const p_voltage_uV, uint32_t *const p_current_nA);
static void harvest_ivcurve_2_mppt_opt(uint32_t *const p_voltage_uV, uint32_t *const p_current_nA);

#define HRV_ISC_VOC (1u << 3u)
#define HRV_IVCURVE (1u << 4u)
Expand Down

0 comments on commit d3c845b

Please sign in to comment.