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

TMP1075 Driver procedures. More...

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

Data Structures

struct  TMP1075_t
 TMP1075 user interface struct. More...
 

Macros

#define TMP1075_CFGR_7_0   0xFFU
 TMP1075 Reserved bits set to FFh.
 
#define TMP1075N_CHIP_ID   0x7500U
 TMP1075 Chip ID to check against.
 

Enumerations

enum  TMP1075_limit { TMP1075__LIMIT_LOW = 0U , TMP1075__LIMIT_HIGH }
 Limits enum of TMP1075. More...
 

Functions

FctERR TMP1075_Init_Sequence (TMP1075_t *const pCpnt)
 Initialization Sequence for TMP1075 peripheral.
 
FctERR TMP1075_Set_LimitTemp (TMP1075_t *const pCpnt, const float temp, const TMP1075_limit lim)
 Set the low/high limit temperature.
 
FctERR TMP1075_Get_LimitTemp (TMP1075_t *const pCpnt, float *temp, TMP1075_limit lim)
 Get the low/high limit temperature.
 
FctERR TMP1075_Get_Temperature (TMP1075_t *const pCpnt, float *temp)
 Get the temperature.
 
FctERR TMP1075_handler (TMP1075_t *const pCpnt)
 Handler for TMP1075 peripheral.
 
FctERR TMP1075_handler_it (TMP1075_t *const pCpnt)
 Handler for TMP1075 peripheral GPIO interrupt.
 
FctERR TMP1075_handler_all (void)
 Handler for all TMP1075 peripherals.
 
FctERR TMP1075_handler_it_all (void)
 Handler for all TMP1075 peripherals GPIO interrupt.
 

Variables

TMP1075_t TMP1075 [I2C_TMP1075_NB]
 TMP1075 User structure.
 

Detailed Description

TMP1075 Driver procedures.

Author
SMFSW

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

Macro Definition Documentation

◆ TMP1075_CFGR_7_0

#define TMP1075_CFGR_7_0   0xFFU

TMP1075 Reserved bits set to FFh.

◆ TMP1075N_CHIP_ID

#define TMP1075N_CHIP_ID   0x7500U

TMP1075 Chip ID to check against.

Enumeration Type Documentation

◆ TMP1075_limit

Limits enum of TMP1075.

Enumerator
TMP1075__LIMIT_LOW 

Low temperature limit.

TMP1075__LIMIT_HIGH 

High temperature limit.

Function Documentation

◆ TMP1075_Get_LimitTemp()

FctERR TMP1075_Get_LimitTemp ( TMP1075_t *const pCpnt,
float * temp,
TMP1075_limit lim )

Get the low/high limit temperature.

Parameters
[in]pCpnt- Pointer to TMP1075 component
[in,out]temp- pointer to temperature to read to (in Celsius degrees)
[in]lim- Limit type
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TMP1075_Get_Temperature()

FctERR TMP1075_Get_Temperature ( TMP1075_t *const pCpnt,
float * temp )

Get the temperature.

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

◆ TMP1075_handler()

FctERR TMP1075_handler ( TMP1075_t *const pCpnt)

Handler for TMP1075 peripheral.

Weak Functions
TMP1075 handler may be user implemented to suit custom needs
Note
May be called periodically to handle TMP1075 tasks
Alternately may be called when event occurs on TMP1075 pin (or by calling TMP1075_handler_it instead)
Parameters
[in]pCpnt- Pointer to TMP1075 component
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TMP1075_handler_all()

FctERR TMP1075_handler_all ( void )

Handler for all TMP1075 peripherals.

Note
May be called periodically to handle all TMP1075 tasks
Returns
FctERR - error code
Here is the call graph for this function:

◆ TMP1075_handler_it()

FctERR TMP1075_handler_it ( TMP1075_t *const pCpnt)

Handler for TMP1075 peripheral GPIO interrupt.

Note
TMP1075_INT_GPIO_Init has to be called at init before using interrupt handler function
Weak Functions
TMP1075 GPIO interrupt handler may be user implemented to suit custom needs
Note
May be called periodically to handle TMP1075 tasks through interrupts
Parameters
[in]pCpnt- Pointer to TMP1075 component
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TMP1075_handler_it_all()

FctERR TMP1075_handler_it_all ( void )

Handler for all TMP1075 peripherals GPIO interrupt.

Note
TMP1075_INT_GPIO_Init has to be called at init before using interrupt handler function
May be called periodically to handle all TMP1075 tasks
Returns
FctERR - error code
Here is the call graph for this function:

◆ TMP1075_Init_Sequence()

FctERR TMP1075_Init_Sequence ( TMP1075_t *const pCpnt)

Initialization Sequence for TMP1075 peripheral.

Weak Functions
TMP1075 Init sequence may be user implemented if custom initialization sequence needed
Parameters
[in]pCpnt- Pointer to TMP1075 component
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TMP1075_Set_LimitTemp()

FctERR TMP1075_Set_LimitTemp ( TMP1075_t *const pCpnt,
const float temp,
const TMP1075_limit lim )

Set the low/high limit temperature.

Parameters
[in]pCpnt- Pointer to TMP1075 component
[in,out]temp- temperature (in Celsius degrees)
[in]lim- Limit type
Returns
FctERR - error code
Here is the call graph for this function:

Variable Documentation

◆ TMP1075

TMP1075_t TMP1075[I2C_TMP1075_NB]
extern

TMP1075 User structure.