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

TMP1075 Driver. More...

#include "TMP1075.h"
Include dependency graph for TMP1075.c:

Functions

FctERR TMP1075_Init (const uint8_t idx, I2C_HandleTypeDef *const hi2c, const uint16_t devAddress)
 Initialization for TMP1075 peripheral.
 
FctERR TMP1075_Init_Single (void)
 Initialization for TMP1075 peripheral.
 
FctERR TMP1075_Write_Byte (I2C_slave_t *const pSlave, const uint8_t *data, const uint16_t addr)
 I2C Write function for TMP1075.
 
FctERR TMP1075_Read_Byte (I2C_slave_t *const pSlave, uint8_t *data, const uint16_t addr)
 I2C Read function for TMP1075.
 
FctERR TMP1075_Write_Word (I2C_slave_t *const pSlave, const uint16_t *data, const uint16_t addr)
 I2C Word Write (little endian) function for TMP1075.
 
FctERR TMP1075_Read_Word (I2C_slave_t *const pSlave, uint16_t *data, const uint16_t addr)
 I2C Word Read (little endian) function for TMP1075.
 

Detailed Description

TMP1075 Driver.

Author
SMFSW

TMP1075: Temperature Sensor With I2C and SMBus Interface in Industry Standard LM75 Form Factor and Pinout

Function Documentation

◆ TMP1075_Init()

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

Initialization for TMP1075 peripheral.

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

◆ TMP1075_Init_Single()

FctERR TMP1075_Init_Single ( void )

Initialization for TMP1075 peripheral.

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

◆ TMP1075_Read_Byte()

FctERR TMP1075_Read_Byte ( I2C_slave_t *const pSlave,
uint8_t * data,
const uint16_t addr )

I2C Read function for TMP1075.

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:

◆ TMP1075_Read_Word()

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

I2C Word Read (little endian) function for TMP1075.

Parameters
[in,out]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:

◆ TMP1075_Write_Byte()

FctERR TMP1075_Write_Byte ( I2C_slave_t *const pSlave,
const uint8_t * data,
const uint16_t addr )

I2C Write function for TMP1075.

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:

◆ TMP1075_Write_Word()

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

I2C Word Write (little endian) function for TMP1075.

Parameters
[in,out]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: