I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
Loading...
Searching...
No Matches
ADS1115.c File Reference

ADS1115 Driver. More...

#include "ADS1115.h"
#include "tick_utils.h"
Include dependency graph for ADS1115.c:

Functions

FctERR ADS1115_Init (const uint8_t idx, I2C_HandleTypeDef *const hi2c, const uint16_t devAddress)
 Initialization for ADS1115 peripheral.
 
FctERR ADS1115_Init_Single (void)
 Initialization for ADS1115 peripheral.
 
FctERR ADS1115_Write (I2C_slave_t *const pSlave, const uint16_t *data, const uint16_t addr)
 I2C Write function for ADS1115.
 
FctERR ADS1115_Read (I2C_slave_t *const pSlave, uint16_t *data, const uint16_t addr)
 I2C Read function for ADS1115.
 

Detailed Description

ADS1115 Driver.

Author
SMFSW

ADS1115: Ultra-Small, Low-Power, 16-Bit Analog-to-Digital Converter with Internal Reference

Note
Compatibility with:
  • ADS1113 (restrictions given in datasheet)
  • ADS1114 (restrictions given in datasheet)
  • ADS1115
Compatibility should be assured with:
  • ADS1x1x (check datasheets for compatibility informations)

Function Documentation

◆ ADS1115_Init()

FctERR ADS1115_Init ( const uint8_t idx,
I2C_HandleTypeDef *const hi2c,
const uint16_t devAddress )

Initialization for ADS1115 peripheral.

Parameters
[in]idx- ADS1115 index
[in]hi2c- pointer to ADS1115 I2C instance
[in]devAddress- ADS1115 device address
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ADS1115_Init_Single()

FctERR ADS1115_Init_Single ( void )

Initialization for ADS1115 peripheral.

Warning
In case multiple devices (defined by I2C_ADS1115_NB > 1), you shall use ADS1115_Init instead
Returns
FctERR - error code
Here is the call graph for this function:

◆ ADS1115_Read()

FctERR ADS1115_Read ( I2C_slave_t *const pSlave,
uint16_t * data,
const uint16_t addr )

I2C Read function for ADS1115.

Parameters
[in]pSlave- Pointer to I2C slave instance
[in,out]data- pointer to read to
[in]addr- Address to read from
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ADS1115_Write()

FctERR ADS1115_Write ( I2C_slave_t *const pSlave,
const uint16_t * data,
const uint16_t addr )

I2C Write function for ADS1115.

Parameters
[in]pSlave- Pointer to I2C slave instance
[in]data- pointer to write from
[in]addr- Address to write to
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function: