LibDriver STTS22H
Loading...
Searching...
No Matches
stts22h example driver function

stts22h example driver modules More...

Collaboration diagram for stts22h example driver function:

Macros

#define STTS22H_BASIC_DEFAULT_DISABLE_SMBUS_TIMEOUT   STTS22H_BOOL_FALSE
 stts22h basic example default definition
#define STTS22H_BASIC_DEFAULT_BLOCK_DATA_UPDATE   STTS22H_BOOL_FALSE
#define STTS22H_BASIC_DEFAULT_IIC_ADDRESS_AUTO_INCREMENT   STTS22H_BOOL_TRUE
#define STTS22H_BASIC_DEFAULT_OUTPUT_DATA_RATE   STTS22H_OUTPUT_DATA_RATE_50HZ
#define STTS22H_INTERRUPT_DEFAULT_DISABLE_SMBUS_TIMEOUT   STTS22H_BOOL_FALSE
 stts22h interrupt example default definition
#define STTS22H_INTERRUPT_DEFAULT_BLOCK_DATA_UPDATE   STTS22H_BOOL_FALSE
#define STTS22H_INTERRUPT_DEFAULT_IIC_ADDRESS_AUTO_INCREMENT   STTS22H_BOOL_TRUE
#define STTS22H_INTERRUPT_DEFAULT_OUTPUT_DATA_RATE   STTS22H_OUTPUT_DATA_RATE_50HZ
#define STTS22H_SHOT_DEFAULT_DISABLE_SMBUS_TIMEOUT   STTS22H_BOOL_FALSE
 stts22h shot example default definition
#define STTS22H_SHOT_DEFAULT_BLOCK_DATA_UPDATE   STTS22H_BOOL_FALSE
#define STTS22H_SHOT_DEFAULT_IIC_ADDRESS_AUTO_INCREMENT   STTS22H_BOOL_TRUE
#define STTS22H_SHOT_DEFAULT_OUTPUT_DATA_RATE   STTS22H_OUTPUT_DATA_RATE_50HZ

Functions

uint8_t stts22h_basic_init (stts22h_address_t addr_pin)
 basic example init
uint8_t stts22h_basic_deinit (void)
 basic example deinit
uint8_t stts22h_basic_read (float *celsius_deg)
 basic example read
uint8_t stts22h_interrupt_irq_handler (void)
 interrupt irq
uint8_t stts22h_interrupt_init (stts22h_address_t addr_pin, float low_celsius_deg, float high_celsius_deg, void(*callback)(uint8_t type))
 interrupt example init
uint8_t stts22h_interrupt_deinit (void)
 interrupt example deinit
uint8_t stts22h_interrupt_read (float *celsius_deg)
 interrupt example read
uint8_t stts22h_shot_init (stts22h_address_t addr_pin)
 shot example init
uint8_t stts22h_shot_deinit (void)
 shot example deinit
uint8_t stts22h_shot_read (float *celsius_deg)
 shot example read

Detailed Description

stts22h example driver modules

Macro Definition Documentation

◆ STTS22H_BASIC_DEFAULT_BLOCK_DATA_UPDATE

#define STTS22H_BASIC_DEFAULT_BLOCK_DATA_UPDATE   STTS22H_BOOL_FALSE

disable block data update

Definition at line 57 of file driver_stts22h_basic.h.

◆ STTS22H_BASIC_DEFAULT_DISABLE_SMBUS_TIMEOUT

#define STTS22H_BASIC_DEFAULT_DISABLE_SMBUS_TIMEOUT   STTS22H_BOOL_FALSE

stts22h basic example default definition

disable

Definition at line 56 of file driver_stts22h_basic.h.

◆ STTS22H_BASIC_DEFAULT_IIC_ADDRESS_AUTO_INCREMENT

#define STTS22H_BASIC_DEFAULT_IIC_ADDRESS_AUTO_INCREMENT   STTS22H_BOOL_TRUE

enable

Definition at line 58 of file driver_stts22h_basic.h.

◆ STTS22H_BASIC_DEFAULT_OUTPUT_DATA_RATE

#define STTS22H_BASIC_DEFAULT_OUTPUT_DATA_RATE   STTS22H_OUTPUT_DATA_RATE_50HZ

50hz

Definition at line 59 of file driver_stts22h_basic.h.

◆ STTS22H_INTERRUPT_DEFAULT_BLOCK_DATA_UPDATE

#define STTS22H_INTERRUPT_DEFAULT_BLOCK_DATA_UPDATE   STTS22H_BOOL_FALSE

disable block data update

Definition at line 57 of file driver_stts22h_interrupt.h.

◆ STTS22H_INTERRUPT_DEFAULT_DISABLE_SMBUS_TIMEOUT

#define STTS22H_INTERRUPT_DEFAULT_DISABLE_SMBUS_TIMEOUT   STTS22H_BOOL_FALSE

stts22h interrupt example default definition

disable

Definition at line 56 of file driver_stts22h_interrupt.h.

◆ STTS22H_INTERRUPT_DEFAULT_IIC_ADDRESS_AUTO_INCREMENT

#define STTS22H_INTERRUPT_DEFAULT_IIC_ADDRESS_AUTO_INCREMENT   STTS22H_BOOL_TRUE

enable

Definition at line 58 of file driver_stts22h_interrupt.h.

◆ STTS22H_INTERRUPT_DEFAULT_OUTPUT_DATA_RATE

#define STTS22H_INTERRUPT_DEFAULT_OUTPUT_DATA_RATE   STTS22H_OUTPUT_DATA_RATE_50HZ

50hz

Definition at line 59 of file driver_stts22h_interrupt.h.

◆ STTS22H_SHOT_DEFAULT_BLOCK_DATA_UPDATE

#define STTS22H_SHOT_DEFAULT_BLOCK_DATA_UPDATE   STTS22H_BOOL_FALSE

disable block data update

Definition at line 59 of file driver_stts22h_shot.h.

◆ STTS22H_SHOT_DEFAULT_DISABLE_SMBUS_TIMEOUT

#define STTS22H_SHOT_DEFAULT_DISABLE_SMBUS_TIMEOUT   STTS22H_BOOL_FALSE

stts22h shot example default definition

stts22h shot example default definition disable

Definition at line 58 of file driver_stts22h_shot.h.

◆ STTS22H_SHOT_DEFAULT_IIC_ADDRESS_AUTO_INCREMENT

#define STTS22H_SHOT_DEFAULT_IIC_ADDRESS_AUTO_INCREMENT   STTS22H_BOOL_TRUE

enable

Definition at line 60 of file driver_stts22h_shot.h.

◆ STTS22H_SHOT_DEFAULT_OUTPUT_DATA_RATE

#define STTS22H_SHOT_DEFAULT_OUTPUT_DATA_RATE   STTS22H_OUTPUT_DATA_RATE_50HZ

50hz

Definition at line 61 of file driver_stts22h_shot.h.

Function Documentation

◆ stts22h_basic_deinit()

uint8_t stts22h_basic_deinit ( void )

basic example deinit

Returns
status code
  • 0 success
  • 1 deinit failed
Note
none

Definition at line 162 of file driver_stts22h_basic.c.

Here is the call graph for this function:

◆ stts22h_basic_init()

uint8_t stts22h_basic_init ( stts22h_address_t addr_pin)

basic example init

Parameters
[in]addr_pinaddress pin
Returns
status code
  • 0 success
  • 1 init failed
Note
none

Definition at line 49 of file driver_stts22h_basic.c.

Here is the call graph for this function:

◆ stts22h_basic_read()

uint8_t stts22h_basic_read ( float * celsius_deg)

basic example read

Parameters
[out]*celsius_degpointer to a celsius degrees buffer
Returns
status code
  • 0 success
  • 1 read failed
Note
none

Definition at line 142 of file driver_stts22h_basic.c.

Here is the call graph for this function:

◆ stts22h_interrupt_deinit()

uint8_t stts22h_interrupt_deinit ( void )

interrupt example deinit

Returns
status code
  • 0 success
  • 1 deinit failed
Note
none

Definition at line 224 of file driver_stts22h_interrupt.c.

Here is the call graph for this function:

◆ stts22h_interrupt_init()

uint8_t stts22h_interrupt_init ( stts22h_address_t addr_pin,
float low_celsius_deg,
float high_celsius_deg,
void(* callback )(uint8_t type) )

interrupt example init

Parameters
[in]addr_pinaddress pin
[in]low_celsius_deglow threshold celsius degrees
[in]high_celsius_deghigh threshold celsius degrees
[in]*callbackpointer to a callback address
Returns
status code
  • 0 success
  • 1 init failed
Note
none

Definition at line 69 of file driver_stts22h_interrupt.c.

Here is the call graph for this function:

◆ stts22h_interrupt_irq_handler()

uint8_t stts22h_interrupt_irq_handler ( void )

interrupt irq

Returns
status code
  • 0 success
  • 1 run failed
Note
none

Definition at line 48 of file driver_stts22h_interrupt.c.

Here is the call graph for this function:

◆ stts22h_interrupt_read()

uint8_t stts22h_interrupt_read ( float * celsius_deg)

interrupt example read

Parameters
[out]*celsius_degpointer to a celsius degrees buffer
Returns
status code
  • 0 success
  • 1 read failed
Note
none

Definition at line 204 of file driver_stts22h_interrupt.c.

Here is the call graph for this function:

◆ stts22h_shot_deinit()

uint8_t stts22h_shot_deinit ( void )

shot example deinit

Returns
status code
  • 0 success
  • 1 deinit failed
Note
none

Definition at line 152 of file driver_stts22h_shot.c.

Here is the call graph for this function:

◆ stts22h_shot_init()

uint8_t stts22h_shot_init ( stts22h_address_t addr_pin)

shot example init

Parameters
[in]addr_pinaddress pin
Returns
status code
  • 0 success
  • 1 init failed
Note
none

Definition at line 49 of file driver_stts22h_shot.c.

Here is the call graph for this function:

◆ stts22h_shot_read()

uint8_t stts22h_shot_read ( float * celsius_deg)

shot example read

Parameters
[out]*celsius_degpointer to a celsius degrees buffer
Returns
status code
  • 0 success
  • 1 read failed
Note
none

Definition at line 132 of file driver_stts22h_shot.c.

Here is the call graph for this function: