|
SmartSnippets DA1459x SDK
|
Access to specific hw_sdadc_config_t structure members and other essential configuration. More...
Functions | |
| __STATIC_INLINE void | hw_sdadc_enable_interrupt (void) |
| Enable SDADC interrupt. More... | |
| __STATIC_INLINE void | hw_sdadc_disable_interrupt (void) |
| Disable SDADC interrupt. More... | |
| __STATIC_INLINE bool | hw_sdadc_is_interrupt_enabled (void) |
| Get the status of the SDADC maskable interrupt (MINT) to the CPU. More... | |
| __STATIC_INLINE void | hw_sdadc_set_continuous (bool enabled) |
| Set continuous mode. More... | |
| __STATIC_INLINE bool | hw_sdadc_get_continuous (void) |
| Get continuous mode state. More... | |
| __STATIC_INLINE void | hw_sdadc_set_dma_functionality (bool enabled) |
| Enable/Disable DMA functionality. More... | |
| __STATIC_INLINE bool | hw_sdadc_get_dma_functionality (void) |
| Get DMA functionality state. More... | |
| void | hw_sdadc_set_input_mode (HW_SDADC_INPUT_MODE mode) |
| Set input mode. More... | |
| __STATIC_INLINE HW_SDADC_INPUT_MODE | hw_sdadc_get_input_mode (void) |
| Get current input mode. More... | |
| __STATIC_FORCEINLINE void | hw_sdadc_set_oversampling (HW_SDADC_OSR osr) |
| Set oversampling. More... | |
| __STATIC_INLINE HW_SDADC_OSR | hw_sdadc_get_oversampling (void) |
| Get current oversampling. More... | |
| __STATIC_INLINE void | hw_sdadc_set_vref_sel (HW_SDADC_VREF_SEL vref_sel) |
| Select voltage reference source. More... | |
| __STATIC_INLINE HW_SDADC_VREF_SEL | hw_sdadc_get_vref_selection (void) |
| Get voltage reference source. More... | |
| __STATIC_INLINE uint16_t | hw_sdadc_get_raw_value (void) |
| Get the result register value. More... | |
| __STATIC_INLINE void | hw_sdadc_connect_vref_to_pad (void) |
| Connect reference voltage to GPIO pad. More... | |
| __STATIC_INLINE void | hw_sdadc_disconnect_vref_from_pad (void) |
| Disconnect reference voltage from GPIO pad. More... | |
Access to specific hw_sdadc_config_t structure members and other essential configuration.
| __STATIC_INLINE void hw_sdadc_connect_vref_to_pad | ( | void | ) |
Connect reference voltage to GPIO pad.
Connect internal SDADC reference voltage VREF (0.9V) to P1[5]
| __STATIC_INLINE void hw_sdadc_disable_interrupt | ( | void | ) |
Disable SDADC interrupt.
| __STATIC_INLINE void hw_sdadc_disconnect_vref_from_pad | ( | void | ) |
Disconnect reference voltage from GPIO pad.
Connect internal SDADC reference voltage VREF (0.9V) to P1[5]
| __STATIC_INLINE void hw_sdadc_enable_interrupt | ( | void | ) |
Enable SDADC interrupt.
| __STATIC_INLINE bool hw_sdadc_get_continuous | ( | void | ) |
Get continuous mode state.
| __STATIC_INLINE bool hw_sdadc_get_dma_functionality | ( | void | ) |
Get DMA functionality state.
| __STATIC_INLINE HW_SDADC_INPUT_MODE hw_sdadc_get_input_mode | ( | void | ) |
Get current input mode.
return input mode
| __STATIC_INLINE HW_SDADC_OSR hw_sdadc_get_oversampling | ( | void | ) |
Get current oversampling.
| __STATIC_INLINE uint16_t hw_sdadc_get_raw_value | ( | void | ) |
Get the result register value.
| __STATIC_INLINE HW_SDADC_VREF_SEL hw_sdadc_get_vref_selection | ( | void | ) |
Get voltage reference source.
| __STATIC_INLINE bool hw_sdadc_is_interrupt_enabled | ( | void | ) |
Get the status of the SDADC maskable interrupt (MINT) to the CPU.
| __STATIC_INLINE void hw_sdadc_set_continuous | ( | bool | enabled | ) |
Set continuous mode.
With continuous mode enabled SDADC will automatically restart conversion once completed. It's still required to start first conversion using hw_sdadc_start().
| [in] | enabled | continuous mode state |
| __STATIC_INLINE void hw_sdadc_set_dma_functionality | ( | bool | enabled | ) |
Enable/Disable DMA functionality.
| [in] | enabled | When true, DMA functionality is enabled |
| void hw_sdadc_set_input_mode | ( | HW_SDADC_INPUT_MODE | mode | ) |
Set input mode.
| [in] | mode | input mode |
| __STATIC_FORCEINLINE void hw_sdadc_set_oversampling | ( | HW_SDADC_OSR | osr | ) |
Set oversampling.
With oversampling enabled multiple successive conversions will be executed and results are added together to increase effective number of bits in result.
| [in] | osr | oversampling rate |
| __STATIC_INLINE void hw_sdadc_set_vref_sel | ( | HW_SDADC_VREF_SEL | vref_sel | ) |
Select voltage reference source.
| [in] | vref_sel | source to set the reference voltage |
1.8.16