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

TMP1075 Driver procedures. More...

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

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, const 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] = { 0 }
 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

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] = { 0 }

TMP1075 User structure.