LibDriver HDC2080
Loading...
Searching...
No Matches
hdc2080 example driver function

hdc2080 example driver modules More...

Collaboration diagram for hdc2080 example driver function:

Macros

#define HDC2080_BASIC_DEFAULT_TEMPERATURE_RESOLUTION   HDC2080_RESOLUTION_14_BIT
 hdc2080 basic example default definition
#define HDC2080_BASIC_DEFAULT_HUMIDITY_RESOLUTION   HDC2080_RESOLUTION_14_BIT
#define HDC2080_BASIC_DEFAULT_HEATER   HDC2080_BOOL_FALSE
#define HDC2080_BASIC_DEFAULT_INTERRUPT_POLARITY   HDC2080_INTERRUPT_POLARITY_LOW
#define HDC2080_BASIC_DEFAULT_INTERRUPT_MODE   HDC2080_INTERRUPT_MODE_COMPARATOR
#define HDC2080_BASIC_DEFAULT_AUTO_MEASUREMENT_MODE   HDC2080_AUTO_MEASUREMENT_MODE_5_HZ
#define HDC2080_BASIC_DEFAULT_TEMPERATURE_OFFSET   0.0f
#define HDC2080_BASIC_DEFAULT_HUMIDITY_OFFSET   0.0f
#define HDC2080_INTERRUPT_DEFAULT_TEMPERATURE_RESOLUTION   HDC2080_RESOLUTION_14_BIT
 hdc2080 interrupt example default definition
#define HDC2080_INTERRUPT_DEFAULT_HUMIDITY_RESOLUTION   HDC2080_RESOLUTION_14_BIT
#define HDC2080_INTERRUPT_DEFAULT_HEATER   HDC2080_BOOL_FALSE
#define HDC2080_INTERRUPT_DEFAULT_INTERRUPT_POLARITY   HDC2080_INTERRUPT_POLARITY_LOW
#define HDC2080_INTERRUPT_DEFAULT_INTERRUPT_MODE   HDC2080_INTERRUPT_MODE_COMPARATOR
#define HDC2080_INTERRUPT_DEFAULT_AUTO_MEASUREMENT_MODE   HDC2080_AUTO_MEASUREMENT_MODE_5_HZ
#define HDC2080_INTERRUPT_DEFAULT_TEMPERATURE_OFFSET   0.0f
#define HDC2080_INTERRUPT_DEFAULT_HUMIDITY_OFFSET   0.0f
#define HDC2080_SHOT_DEFAULT_TEMPERATURE_RESOLUTION   HDC2080_RESOLUTION_14_BIT
 hdc2080 shot example default definition
#define HDC2080_SHOT_DEFAULT_HUMIDITY_RESOLUTION   HDC2080_RESOLUTION_14_BIT
#define HDC2080_SHOT_DEFAULT_HEATER   HDC2080_BOOL_FALSE
#define HDC2080_SHOT_DEFAULT_INTERRUPT_POLARITY   HDC2080_INTERRUPT_POLARITY_LOW
#define HDC2080_SHOT_DEFAULT_INTERRUPT_MODE   HDC2080_INTERRUPT_MODE_COMPARATOR
#define HDC2080_SHOT_DEFAULT_TEMPERATURE_OFFSET   0.0f
#define HDC2080_SHOT_DEFAULT_HUMIDITY_OFFSET   0.0f

Functions

uint8_t hdc2080_basic_init (hdc2080_address_t addr_pin)
 basic example init
uint8_t hdc2080_basic_deinit (void)
 basic example deinit
uint8_t hdc2080_basic_read (float *temperature, float *humidity)
 basic example read
uint8_t hdc2080_interrupt_init (hdc2080_address_t addr_pin, float high_deg, float low_deg, float high_percent, float low_percent)
 interrupt example init
uint8_t hdc2080_interrupt_deinit (void)
 interrupt example deinit
uint8_t hdc2080_interrupt_read (float *temperature, float *humidity)
 interrupt example read
uint8_t hdc2080_shot_init (hdc2080_address_t addr_pin)
 shot example init
uint8_t hdc2080_shot_deinit (void)
 shot example deinit
uint8_t hdc2080_shot_read (float *temperature, float *humidity)
 shot example read
uint8_t hdc2080_shot_get_temperature_max (float *temperature)
 shot get temperature max
uint8_t hdc2080_shot_get_humidity_max (float *percent)
 shot get humidity max

Detailed Description

hdc2080 example driver modules

Macro Definition Documentation

◆ HDC2080_BASIC_DEFAULT_AUTO_MEASUREMENT_MODE

#define HDC2080_BASIC_DEFAULT_AUTO_MEASUREMENT_MODE   HDC2080_AUTO_MEASUREMENT_MODE_5_HZ

5hz

Definition at line 61 of file driver_hdc2080_basic.h.

◆ HDC2080_BASIC_DEFAULT_HEATER

#define HDC2080_BASIC_DEFAULT_HEATER   HDC2080_BOOL_FALSE

disable heater

Definition at line 58 of file driver_hdc2080_basic.h.

◆ HDC2080_BASIC_DEFAULT_HUMIDITY_OFFSET

#define HDC2080_BASIC_DEFAULT_HUMIDITY_OFFSET   0.0f

0.0f %

Definition at line 63 of file driver_hdc2080_basic.h.

◆ HDC2080_BASIC_DEFAULT_HUMIDITY_RESOLUTION

#define HDC2080_BASIC_DEFAULT_HUMIDITY_RESOLUTION   HDC2080_RESOLUTION_14_BIT

14bits

Definition at line 57 of file driver_hdc2080_basic.h.

◆ HDC2080_BASIC_DEFAULT_INTERRUPT_MODE

#define HDC2080_BASIC_DEFAULT_INTERRUPT_MODE   HDC2080_INTERRUPT_MODE_COMPARATOR

comparator mode

Definition at line 60 of file driver_hdc2080_basic.h.

◆ HDC2080_BASIC_DEFAULT_INTERRUPT_POLARITY

#define HDC2080_BASIC_DEFAULT_INTERRUPT_POLARITY   HDC2080_INTERRUPT_POLARITY_LOW

active low

Definition at line 59 of file driver_hdc2080_basic.h.

◆ HDC2080_BASIC_DEFAULT_TEMPERATURE_OFFSET

#define HDC2080_BASIC_DEFAULT_TEMPERATURE_OFFSET   0.0f

0.0 deg

Definition at line 62 of file driver_hdc2080_basic.h.

◆ HDC2080_BASIC_DEFAULT_TEMPERATURE_RESOLUTION

#define HDC2080_BASIC_DEFAULT_TEMPERATURE_RESOLUTION   HDC2080_RESOLUTION_14_BIT

hdc2080 basic example default definition

14bits

Definition at line 56 of file driver_hdc2080_basic.h.

◆ HDC2080_INTERRUPT_DEFAULT_AUTO_MEASUREMENT_MODE

#define HDC2080_INTERRUPT_DEFAULT_AUTO_MEASUREMENT_MODE   HDC2080_AUTO_MEASUREMENT_MODE_5_HZ

5hz

Definition at line 59 of file driver_hdc2080_interrupt.h.

◆ HDC2080_INTERRUPT_DEFAULT_HEATER

#define HDC2080_INTERRUPT_DEFAULT_HEATER   HDC2080_BOOL_FALSE

disable heater

Definition at line 56 of file driver_hdc2080_interrupt.h.

◆ HDC2080_INTERRUPT_DEFAULT_HUMIDITY_OFFSET

#define HDC2080_INTERRUPT_DEFAULT_HUMIDITY_OFFSET   0.0f

0.0f %

Definition at line 61 of file driver_hdc2080_interrupt.h.

◆ HDC2080_INTERRUPT_DEFAULT_HUMIDITY_RESOLUTION

#define HDC2080_INTERRUPT_DEFAULT_HUMIDITY_RESOLUTION   HDC2080_RESOLUTION_14_BIT

14bits

Definition at line 55 of file driver_hdc2080_interrupt.h.

◆ HDC2080_INTERRUPT_DEFAULT_INTERRUPT_MODE

#define HDC2080_INTERRUPT_DEFAULT_INTERRUPT_MODE   HDC2080_INTERRUPT_MODE_COMPARATOR

comparator mode

Definition at line 58 of file driver_hdc2080_interrupt.h.

◆ HDC2080_INTERRUPT_DEFAULT_INTERRUPT_POLARITY

#define HDC2080_INTERRUPT_DEFAULT_INTERRUPT_POLARITY   HDC2080_INTERRUPT_POLARITY_LOW

active low

Definition at line 57 of file driver_hdc2080_interrupt.h.

◆ HDC2080_INTERRUPT_DEFAULT_TEMPERATURE_OFFSET

#define HDC2080_INTERRUPT_DEFAULT_TEMPERATURE_OFFSET   0.0f

0.0 deg

Definition at line 60 of file driver_hdc2080_interrupt.h.

◆ HDC2080_INTERRUPT_DEFAULT_TEMPERATURE_RESOLUTION

#define HDC2080_INTERRUPT_DEFAULT_TEMPERATURE_RESOLUTION   HDC2080_RESOLUTION_14_BIT

hdc2080 interrupt example default definition

14bits

Definition at line 54 of file driver_hdc2080_interrupt.h.

◆ HDC2080_SHOT_DEFAULT_HEATER

#define HDC2080_SHOT_DEFAULT_HEATER   HDC2080_BOOL_FALSE

disable heater

Definition at line 56 of file driver_hdc2080_shot.h.

◆ HDC2080_SHOT_DEFAULT_HUMIDITY_OFFSET

#define HDC2080_SHOT_DEFAULT_HUMIDITY_OFFSET   0.0f

0.0f %

Definition at line 60 of file driver_hdc2080_shot.h.

◆ HDC2080_SHOT_DEFAULT_HUMIDITY_RESOLUTION

#define HDC2080_SHOT_DEFAULT_HUMIDITY_RESOLUTION   HDC2080_RESOLUTION_14_BIT

14bits

Definition at line 55 of file driver_hdc2080_shot.h.

◆ HDC2080_SHOT_DEFAULT_INTERRUPT_MODE

#define HDC2080_SHOT_DEFAULT_INTERRUPT_MODE   HDC2080_INTERRUPT_MODE_COMPARATOR

comparator mode

Definition at line 58 of file driver_hdc2080_shot.h.

◆ HDC2080_SHOT_DEFAULT_INTERRUPT_POLARITY

#define HDC2080_SHOT_DEFAULT_INTERRUPT_POLARITY   HDC2080_INTERRUPT_POLARITY_LOW

active low

Definition at line 57 of file driver_hdc2080_shot.h.

◆ HDC2080_SHOT_DEFAULT_TEMPERATURE_OFFSET

#define HDC2080_SHOT_DEFAULT_TEMPERATURE_OFFSET   0.0f

0.0 deg

Definition at line 59 of file driver_hdc2080_shot.h.

◆ HDC2080_SHOT_DEFAULT_TEMPERATURE_RESOLUTION

#define HDC2080_SHOT_DEFAULT_TEMPERATURE_RESOLUTION   HDC2080_RESOLUTION_14_BIT

hdc2080 shot example default definition

14bits

Definition at line 54 of file driver_hdc2080_shot.h.

Function Documentation

◆ hdc2080_basic_deinit()

uint8_t hdc2080_basic_deinit ( void )

basic example deinit

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

Definition at line 356 of file driver_hdc2080_basic.c.

Here is the call graph for this function:

◆ hdc2080_basic_init()

uint8_t hdc2080_basic_init ( hdc2080_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_hdc2080_basic.c.

Here is the call graph for this function:

◆ hdc2080_basic_read()

uint8_t hdc2080_basic_read ( float * temperature,
float * humidity )

basic example read

Parameters
[out]*temperaturepointer to a converted temperature buffer
[out]*humiditypointer to a converted humidity buffer
Returns
status code
  • 0 success
  • 1 read failed
Note
none

Definition at line 334 of file driver_hdc2080_basic.c.

Here is the call graph for this function:

◆ hdc2080_interrupt_deinit()

uint8_t hdc2080_interrupt_deinit ( void )

interrupt example deinit

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

Definition at line 372 of file driver_hdc2080_interrupt.c.

Here is the call graph for this function:

◆ hdc2080_interrupt_init()

uint8_t hdc2080_interrupt_init ( hdc2080_address_t addr_pin,
float high_deg,
float low_deg,
float high_percent,
float low_percent )

interrupt example init

Parameters
[in]addr_pinaddress pin
[in]high_degtemperature high threshold
[in]low_degtemperature low threshold
[in]high_percenthumidity high threshold
[in]low_percenthumidity low threshold
Returns
status code
  • 0 success
  • 1 init failed
Note
none

Definition at line 53 of file driver_hdc2080_interrupt.c.

Here is the call graph for this function:

◆ hdc2080_interrupt_read()

uint8_t hdc2080_interrupt_read ( float * temperature,
float * humidity )

interrupt example read

Parameters
[out]*temperaturepointer to a converted temperature buffer
[out]*humiditypointer to a converted humidity buffer
Returns
status code
  • 0 success
  • 1 read failed
Note
none

Definition at line 350 of file driver_hdc2080_interrupt.c.

Here is the call graph for this function:

◆ hdc2080_shot_deinit()

uint8_t hdc2080_shot_deinit ( void )

shot example deinit

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

Definition at line 414 of file driver_hdc2080_shot.c.

Here is the call graph for this function:

◆ hdc2080_shot_get_humidity_max()

uint8_t hdc2080_shot_get_humidity_max ( float * percent)

shot get humidity max

Parameters
[out]*percentpointer to a converted percent buffer
Returns
status code
  • 0 success
  • 1 read failed
Note
none

Definition at line 385 of file driver_hdc2080_shot.c.

Here is the call graph for this function:

◆ hdc2080_shot_get_temperature_max()

uint8_t hdc2080_shot_get_temperature_max ( float * temperature)

shot get temperature max

Parameters
[out]*temperaturepointer to a converted temperature buffer
Returns
status code
  • 0 success
  • 1 read failed
Note
none

Definition at line 355 of file driver_hdc2080_shot.c.

Here is the call graph for this function:

◆ hdc2080_shot_init()

uint8_t hdc2080_shot_init ( hdc2080_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_hdc2080_shot.c.

Here is the call graph for this function:

◆ hdc2080_shot_read()

uint8_t hdc2080_shot_read ( float * temperature,
float * humidity )

shot example read

Parameters
[out]*temperaturepointer to a converted temperature buffer
[out]*humiditypointer to a converted humidity buffer
Returns
status code
  • 0 success
  • 1 read failed
Note
none

Definition at line 324 of file driver_hdc2080_shot.c.

Here is the call graph for this function: