Skip to content

Commit

Permalink
added enums for ref sel to 665 and 650
Browse files Browse the repository at this point in the history
  • Loading branch information
EricB-ADI committed Oct 24, 2023
1 parent c8b648e commit 7993d20
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Libraries/PeriphDrivers/Include/MAX32650/adc.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ typedef void (*mxc_adc_complete_cb_t)(void *req, int error);
*/
typedef void (*mxc_adc_monitor_cb_t)(void *req, int error);

/**
* Enumeration type for ADC reference sources
*/
typedef enum {
MXC_ADC_REF_INT, // Selects internal bandgap reference
MXC_ADC_REF_EXT, // Selects external reference pins
} mxc_adc_ref_t;

/**
* @brief Used to set up a monitor to watch a channel
*
Expand Down
7 changes: 7 additions & 0 deletions Libraries/PeriphDrivers/Include/MAX32665/adc.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ typedef enum {
MXC_ADC_SCALE_6, ///< ADC Scale by 1/6 (this uses 1/3 and an additional 1/2 scaling)
MXC_ADC_SCALE_8, ///< ADC Scale by 1/8 (this uses 1/4 and an additional 1/2 scaling)
} mxc_adc_scale_t;
/**
* Enumeration type for ADC reference sources
*/
typedef enum {
MXC_ADC_REF_INT, // Selects internal bandgap reference
MXC_ADC_REF_EXT, // Selects external reference pins
} mxc_adc_ref_t;

/**
* @brief Callback used when a conversion event is complete
Expand Down

0 comments on commit 7993d20

Please sign in to comment.