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

TMP1075 Driver extensions. More...

#include "sarmfsw.h"
#include "TMP1075.h"
Include dependency graph for TMP1075_ex.h:
This graph shows which files directly or indirectly include this file:

Functions

FctERR TMP1075_Write_Config (TMP1075_t *const pCpnt, const uint8_t *cfg)
 Set TMP1075 Configuration.
 
FctERR TMP1075_Read_Config (TMP1075_t *const pCpnt, uint8_t *cfg)
 Get TMP1075 Configuration.
 
FctERR TMP1075_Get_Temperature_Raw (TMP1075_t *const pCpnt, int16_t *const temp)
 Get TMP1075 Raw temperature.
 
FctERR TMP1075_Start_SingleConversion (TMP1075_t *const pCpnt)
 Start TMP1075 single conversion.
 
FctERR TMP1075_Set_ConversionRate (TMP1075_t *const pCpnt, const TMP1075_conv_rate rate)
 Set TMP1075 automatic conversion rate.
 
FctERR TMP1075_Set_ConversionMode (TMP1075_t *const pCpnt, const TMP1075_shutdown_mode mode)
 Set TMP1075 conversion mode (manual/auto)
 
FctERR TMP1075_Set_AlertMode (TMP1075_t *const pCpnt, const TMP1075_alert_mode mode)
 Set TMP1075 alert mode (comparator/interrupt)
 
FctERR TMP1075_Set_AlertPolarity (TMP1075_t *const pCpnt, const TMP1075_alert_pol pol)
 Set TMP1075 alert polarity.
 
FctERR TMP1075_Set_AlertNbFaults (TMP1075_t *const pCpnt, const TMP1075_nb_faults faults)
 Set TMP1075 alert number of faults trigger.
 
FctERR TMP1075N_Get_ChipID (TMP1075_t *const pCpnt, uint16_t *const id)
 Get TMP1075N chip ID.
 
void TMP1075_INT_GPIO_Init (TMP1075_t *const pCpnt, GPIO_TypeDef *const GPIOx, const uint16_t GPIO_Pin, const GPIO_PinState GPIO_Active)
 Interrupt GPIO pin init for TMP1075.
 
bool TMP1075_INT_GPIO_Get (const TMP1075_t *const pCpnt)
 Interrupt GPIO pin getter for ADS1115.
 

Detailed Description

TMP1075 Driver extensions.

Author
SMFSW

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

Function Documentation

◆ TMP1075_Get_Temperature_Raw()

FctERR TMP1075_Get_Temperature_Raw ( TMP1075_t *const pCpnt,
int16_t *const temp )

Get TMP1075 Raw temperature.

Parameters
[in]pCpnt- Pointer to TMP1075 component
[in,out]temp- pointer to Temperature value to read to
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TMP1075_INT_GPIO_Get()

bool TMP1075_INT_GPIO_Get ( const TMP1075_t *const pCpnt)

Interrupt GPIO pin getter for ADS1115.

Weak Functions
TMP1075 Interrupt GPIO pin getter may be user implemented if needed
Parameters
[in]pCpnt- Pointer to TMP1075 component
Returns
INT pin state value (0: inactive, 1: active)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TMP1075_INT_GPIO_Init()

void TMP1075_INT_GPIO_Init ( TMP1075_t *const pCpnt,
GPIO_TypeDef *const GPIOx,
const uint16_t GPIO_Pin,
const GPIO_PinState GPIO_Active )

Interrupt GPIO pin init for TMP1075.

Weak Functions
TMP1075 Interrupt GPIO pin init may be user implemented if needed
Parameters
[in]pCpnt- Pointer to TMP1075 component
[in]GPIOx- INT port
[in]GPIO_Pin- INT pin
[in]GPIO_ActiveINT pin active state
Here is the call graph for this function:

◆ TMP1075_Read_Config()

FctERR TMP1075_Read_Config ( TMP1075_t *const pCpnt,
uint8_t * cfg )
inline

Get TMP1075 Configuration.

Parameters
[in]pCpnt- Pointer to TMP1075 component
[in,out]cfg- pointer to Configuration value to read to
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TMP1075_Set_AlertMode()

FctERR TMP1075_Set_AlertMode ( TMP1075_t *const pCpnt,
const TMP1075_alert_mode mode )

Set TMP1075 alert mode (comparator/interrupt)

Parameters
[in]pCpnt- Pointer to TMP1075 component
[in]mode- Alert mode (comparator/interrupt)
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TMP1075_Set_AlertNbFaults()

FctERR TMP1075_Set_AlertNbFaults ( TMP1075_t *const pCpnt,
const TMP1075_nb_faults faults )

Set TMP1075 alert number of faults trigger.

Parameters
[in]pCpnt- Pointer to TMP1075 component
[in]faults- Number of faults to trigger alert
Returns
FctERR - error code
Here is the call graph for this function:

◆ TMP1075_Set_AlertPolarity()

FctERR TMP1075_Set_AlertPolarity ( TMP1075_t *const pCpnt,
const TMP1075_alert_pol pol )

Set TMP1075 alert polarity.

Parameters
[in]pCpnt- Pointer to TMP1075 component
[in]pol- Alert pin polarity
Returns
FctERR - error code
Here is the call graph for this function:

◆ TMP1075_Set_ConversionMode()

FctERR TMP1075_Set_ConversionMode ( TMP1075_t *const pCpnt,
const TMP1075_shutdown_mode mode )

Set TMP1075 conversion mode (manual/auto)

Parameters
[in]pCpnt- Pointer to TMP1075 component
[in]mode- Conversion mode (manual/auto)
Returns
FctERR - error code
Here is the call graph for this function:

◆ TMP1075_Set_ConversionRate()

FctERR TMP1075_Set_ConversionRate ( TMP1075_t *const pCpnt,
const TMP1075_conv_rate rate )

Set TMP1075 automatic conversion rate.

Note
Starts continuous conversions automatically
Parameters
[in]pCpnt- Pointer to TMP1075 component
[in]rate- Conversion rate
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TMP1075_Start_SingleConversion()

FctERR TMP1075_Start_SingleConversion ( TMP1075_t *const pCpnt)

Start TMP1075 single conversion.

Note
Stops continuous conversions automatically
Parameters
[in]pCpnt- Pointer to TMP1075 component
Returns
FctERR - error code
Here is the call graph for this function:

◆ TMP1075_Write_Config()

FctERR TMP1075_Write_Config ( TMP1075_t *const pCpnt,
const uint8_t * cfg )
inline

Set TMP1075 Configuration.

Parameters
[in]pCpnt- Pointer to TMP1075 component
[in]cfg- pointer to Configuration value to write from
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TMP1075N_Get_ChipID()

FctERR TMP1075N_Get_ChipID ( TMP1075_t *const pCpnt,
uint16_t *const id )
inline

Get TMP1075N chip ID.

Parameters
[in]pCpnt- Pointer to TMP1075N component
[in,out]id- pointer to chip ID result
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function: