|
I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
|
ADS1115 Driver extensions. More...


Data Structures | |
| union | uADS1115_REG_MAP |
| Union of ADS1115 registry map. More... | |
Functions | |
| uint32_t | ADS1115_Get_conv_us (ADS1115_t *const pCpnt) |
| Get conversion time for ADS1115 component (µs) | |
| uint32_t | ADS1115_Get_conv_ms (ADS1115_t *const pCpnt) |
| Get conversion time for ADS1115 component (ms) | |
| FctERR | ADS1115_Get_Conversion (ADS1115_t *const pCpnt) |
| Get ADS1115 conversion. | |
| FctERR | ADS1115_Set_Function (ADS1115_t *const pCpnt, const ADS1115_func func, const ADS1115_mode mode, const uint8_t nb) |
| Set ADS1115 functional mode. | |
| FctERR | ADS1115_Set_Mode (ADS1115_t *const pCpnt, const ADS1115_mode mode) |
| Set ADS1115 mode. | |
| FctERR | ADS1115_Set_Gain (ADS1115_t *const pCpnt, const ADS1115_gain gain) |
| Set ADS1115 gain. | |
| FctERR | ADS1115_Set_Rate (ADS1115_t *const pCpnt, const ADS1115_rate rate) |
| Set ADS1115 rate. | |
| FctERR | ADS1115_Set_CompMode (ADS1115_t *const pCpnt, const ADS1115_comp comp) |
| Set ADS1115 Comparator mode. | |
| FctERR | ADS1115_Set_CompPolarity (ADS1115_t *const pCpnt, const ADS1115_polarity pol) |
| Set ADS1115 Comparator polarity. | |
| FctERR | ADS1115_Set_CompLatch (ADS1115_t *const pCpnt, const ADS1115_latch latch) |
| Set ADS1115 Comparator latch. | |
| FctERR | ADS1115_Set_CompQueue (ADS1115_t *const pCpnt, const ADS1115_queue queue) |
| Set ADS1115 Comparator queue. | |
| FctERR | ADS1115_Set_LowThreshold (ADS1115_t *const pCpnt, const int16_t thrh) |
| Set ADS1115 low threshold. | |
| FctERR | ADS1115_Set_HighThreshold (ADS1115_t *const pCpnt, const int16_t thrh) |
| Set ADS1115 high threshold. | |
| int16_t | ADS1115_Get_LowThreshold (const ADS1115_t *const pCpnt) |
| Get ADS1115 low threshold. | |
| int16_t | ADS1115_Get_HighThreshold (const ADS1115_t *const pCpnt) |
| Get ADS1115 high threshold. | |
| FctERR | ADS1115_Start_Conversion (ADS1115_t *const pCpnt, const ADS1115_mux chan) |
| Start ADS1115 conversion. | |
| FctERR | ADS1115_Start_NextConversion (ADS1115_t *const pCpnt) |
| Start ADS1115 Next conversion. | |
| int16_t | ADS1115_Get_raw_value (const ADS1115_t *const pCpnt, const uint8_t chan) |
| Get ADS1115 raw channel value. | |
| float | ADS1115_Get_converted_value_uV (const ADS1115_t *const pCpnt, const uint8_t chan) |
| Get ADS1115 raw channel value in µV. | |
| float | ADS1115_Get_converted_value_mV (const ADS1115_t *const pCpnt, const uint8_t chan) |
| Get ADS1115 raw channel value in mV. | |
| float | ADS1115_Get_converted_value_V (const ADS1115_t *const pCpnt, const uint8_t chan) |
| Get ADS1115 raw channel value in V. | |
| void | ADS1115_RDY_GPIO_Init (ADS1115_t *const pCpnt, GPIO_TypeDef *const GPIOx, const uint16_t GPIO_Pin, const GPIO_PinState GPIO_Active) |
| Ready GPIO pin init for ADS1115. | |
| bool | ADS1115_RDY_GPIO_Get (const ADS1115_t *const pCpnt) |
| Ready GPIO pin getter for ADS1115. | |
ADS1115 Driver extensions.
ADS1115: Ultra-Small, Low-Power, 16-Bit Analog-to-Digital Converter with Internal Reference
| uint32_t ADS1115_Get_conv_ms | ( | ADS1115_t *const | pCpnt | ) |
Get conversion time for ADS1115 component (ms)
| [in] | pCpnt | - Pointer to ADS1115 component |
| uint32_t ADS1115_Get_conv_us | ( | ADS1115_t *const | pCpnt | ) |
Get conversion time for ADS1115 component (µs)
| [in] | pCpnt | - Pointer to ADS1115 component |

| FctERR ADS1115_Get_Conversion | ( | ADS1115_t *const | pCpnt | ) |
Get ADS1115 conversion.
| [in] | pCpnt | - Pointer to ADS1115 component |


| float ADS1115_Get_converted_value_mV | ( | const ADS1115_t *const | pCpnt, |
| const uint8_t | chan ) |
Get ADS1115 raw channel value in mV.
| [in] | pCpnt | - Pointer to ADS1115 component |
| [in] | chan | - ADS1115 channel |


| float ADS1115_Get_converted_value_uV | ( | const ADS1115_t *const | pCpnt, |
| const uint8_t | chan ) |
Get ADS1115 raw channel value in µV.
| [in] | pCpnt | - Pointer to ADS1115 component |
| [in] | chan | - ADS1115 channel |

| float ADS1115_Get_converted_value_V | ( | const ADS1115_t *const | pCpnt, |
| const uint8_t | chan ) |
Get ADS1115 raw channel value in V.
| [in] | pCpnt | - Pointer to ADS1115 component |
| [in] | chan | - ADS1115 channel |

|
inline |
Get ADS1115 high threshold.
| [in] | pCpnt | - Pointer to ADS1115 component |
|
inline |
Get ADS1115 low threshold.
| [in] | pCpnt | - Pointer to ADS1115 component |
|
inline |
Get ADS1115 raw channel value.
| [in] | pCpnt | - Pointer to ADS1115 component |
| [in] | chan | - ADS1115 channel |

| bool ADS1115_RDY_GPIO_Get | ( | const ADS1115_t *const | pCpnt | ) |
Ready GPIO pin getter for ADS1115.
| [in] | pCpnt | - Pointer to ADS1115 component |


| void ADS1115_RDY_GPIO_Init | ( | ADS1115_t *const | pCpnt, |
| GPIO_TypeDef *const | GPIOx, | ||
| const uint16_t | GPIO_Pin, | ||
| const GPIO_PinState | GPIO_Active ) |
Ready GPIO pin init for ADS1115.
| [in] | pCpnt | - Pointer to ADS1115 component |
| [in] | GPIOx | - RDY port |
| [in] | GPIO_Pin | - RDY pin |
| [in] | GPIO_Active | RDY pin active state |

| FctERR ADS1115_Set_CompLatch | ( | ADS1115_t *const | pCpnt, |
| const ADS1115_latch | latch ) |
Set ADS1115 Comparator latch.
| [in] | pCpnt | - Pointer to ADS1115 component |
| [in] | latch | - Comparator latch |
| FctERR ADS1115_Set_CompMode | ( | ADS1115_t *const | pCpnt, |
| const ADS1115_comp | comp ) |
Set ADS1115 Comparator mode.
| [in] | pCpnt | - Pointer to ADS1115 component |
| [in] | comp | - Comparator Mode |
| FctERR ADS1115_Set_CompPolarity | ( | ADS1115_t *const | pCpnt, |
| const ADS1115_polarity | pol ) |
Set ADS1115 Comparator polarity.
| [in] | pCpnt | - Pointer to ADS1115 component |
| [in] | pol | - Comparator Polarity |
| FctERR ADS1115_Set_CompQueue | ( | ADS1115_t *const | pCpnt, |
| const ADS1115_queue | queue ) |
Set ADS1115 Comparator queue.
| [in] | pCpnt | - Pointer to ADS1115 component |
| [in] | queue | - Comparator queue |
| FctERR ADS1115_Set_Function | ( | ADS1115_t *const | pCpnt, |
| const ADS1115_func | func, | ||
| const ADS1115_mode | mode, | ||
| const uint8_t | nb ) |
Set ADS1115 functional mode.
| [in] | pCpnt | - Pointer to ADS1115 component |
| [in] | func | - ADS1115 function |
| [in] | mode | - ADS1115 mode |
| [in] | nb | - Number of channels used |

| FctERR ADS1115_Set_Gain | ( | ADS1115_t *const | pCpnt, |
| const ADS1115_gain | gain ) |
Set ADS1115 gain.
| [in] | pCpnt | - Pointer to ADS1115 component |
| [in] | gain | - Gain |
|
inline |
Set ADS1115 high threshold.
| [in] | pCpnt | - Pointer to ADS1115 component |
| [in] | thrh | - High threshold value |

|
inline |
Set ADS1115 low threshold.
| [in] | pCpnt | - Pointer to ADS1115 component |
| [in] | thrh | - Low threshold value |

| FctERR ADS1115_Set_Mode | ( | ADS1115_t *const | pCpnt, |
| const ADS1115_mode | mode ) |
Set ADS1115 mode.
| [in] | pCpnt | - Pointer to ADS1115 component |
| [in] | mode | - Mode |
| FctERR ADS1115_Set_Rate | ( | ADS1115_t *const | pCpnt, |
| const ADS1115_rate | rate ) |
Set ADS1115 rate.
| [in] | pCpnt | - Pointer to ADS1115 component |
| [in] | rate | - Data rate |
| FctERR ADS1115_Start_Conversion | ( | ADS1115_t *const | pCpnt, |
| const ADS1115_mux | chan ) |
Start ADS1115 conversion.
| [in] | pCpnt | - Pointer to ADS1115 component |
| [in] | chan | - Channel |

| FctERR ADS1115_Start_NextConversion | ( | ADS1115_t *const | pCpnt | ) |
Start ADS1115 Next conversion.
| [in] | pCpnt | - Pointer to ADS1115 component |

