LibDriver DS18B20
Loading...
Searching...
No Matches
ds18b20 example driver function

ds18b20 example driver modules More...

Collaboration diagram for ds18b20 example driver function:

Macros

#define DS18B20_BASIC_DEFAULT_RESOLUTION   DS18B20_RESOLUTION_12BIT
 ds18b20 basic example default definition

Functions

uint8_t ds18b20_alarm_init (void)
 alarm example init
uint8_t ds18b20_alarm_deinit (void)
 alarm example deinit
uint8_t ds18b20_alarm_set_threshold (uint8_t rom[8], float low, float high)
 alarm example set the threshold
uint8_t ds18b20_alarm_get_threshold (uint8_t rom[8], float *low, float *high)
 alarm example get the threshold
uint8_t ds18b20_alarm_search (uint8_t(*rom)[8], uint8_t *num)
 alarm example find
uint8_t ds18b20_basic_init (void)
 basic example init
uint8_t ds18b20_basic_read (float *temperature)
 basic example read
uint8_t ds18b20_basic_deinit (void)
 basic example deinit
uint8_t ds18b20_match_init (void)
 match example init
uint8_t ds18b20_match_deinit (void)
 match example deinit
uint8_t ds18b20_match_read (uint8_t rom[8], float *temperature)
 match example read
uint8_t ds18b20_search_init (void)
 search example init
uint8_t ds18b20_search (uint8_t(*rom)[8], uint8_t *num)
 search example find
uint8_t ds18b20_search_deinit (void)
 search example deinit

Detailed Description

ds18b20 example driver modules

Macro Definition Documentation

◆ DS18B20_BASIC_DEFAULT_RESOLUTION

#define DS18B20_BASIC_DEFAULT_RESOLUTION   DS18B20_RESOLUTION_12BIT

ds18b20 basic example default definition

resolution 12bit

Definition at line 57 of file driver_ds18b20_basic.h.

Function Documentation

◆ ds18b20_alarm_deinit()

uint8_t ds18b20_alarm_deinit ( void )

alarm example deinit

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

Definition at line 210 of file driver_ds18b20_alarm.c.

Here is the call graph for this function:

◆ ds18b20_alarm_get_threshold()

uint8_t ds18b20_alarm_get_threshold ( uint8_t rom[8],
float * low,
float * high )

alarm example get the threshold

Parameters
[in]*rompointer to a rom buffer
[out]*lowpointer to a low threshold
[out]*highpointer to a high threshold
Returns
status code
  • 0 success
  • 1 get threshold failed
Note
none

Definition at line 144 of file driver_ds18b20_alarm.c.

Here is the call graph for this function:

◆ ds18b20_alarm_init()

uint8_t ds18b20_alarm_init ( void )

alarm example init

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

Definition at line 49 of file driver_ds18b20_alarm.c.

Here is the call graph for this function:

◆ ds18b20_alarm_search()

uint8_t ds18b20_alarm_search ( uint8_t(*) rom[8],
uint8_t * num )

alarm example find

Parameters
[in]*rompointer to a rom buffer
[in,out]*numpointer to a number buffer
Returns
status code
  • 0 success
  • 1 search failed
Note
none

Definition at line 190 of file driver_ds18b20_alarm.c.

Here is the call graph for this function:

◆ ds18b20_alarm_set_threshold()

uint8_t ds18b20_alarm_set_threshold ( uint8_t rom[8],
float low,
float high )

alarm example set the threshold

Parameters
[in]*rompointer to a rom buffer
[in]lowlow threshold
[in]highhigh threshold
Returns
status code
  • 0 success
  • 1 set threshold failed
Note
none

Definition at line 97 of file driver_ds18b20_alarm.c.

Here is the call graph for this function:

◆ ds18b20_basic_deinit()

uint8_t ds18b20_basic_deinit ( void )

basic example deinit

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

Definition at line 127 of file driver_ds18b20_basic.c.

Here is the call graph for this function:

◆ ds18b20_basic_init()

uint8_t ds18b20_basic_init ( void )

basic example init

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

Definition at line 49 of file driver_ds18b20_basic.c.

Here is the call graph for this function:

◆ ds18b20_basic_read()

uint8_t ds18b20_basic_read ( float * temperature)

basic example read

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

Definition at line 105 of file driver_ds18b20_basic.c.

Here is the call graph for this function:

◆ ds18b20_match_deinit()

uint8_t ds18b20_match_deinit ( void )

match example deinit

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

Definition at line 126 of file driver_ds18b20_match.c.

Here is the call graph for this function:

◆ ds18b20_match_init()

uint8_t ds18b20_match_init ( void )

match example init

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

Definition at line 49 of file driver_ds18b20_match.c.

Here is the call graph for this function:

◆ ds18b20_match_read()

uint8_t ds18b20_match_read ( uint8_t rom[8],
float * temperature )

match example read

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

Definition at line 96 of file driver_ds18b20_match.c.

Here is the call graph for this function:

◆ ds18b20_search()

uint8_t ds18b20_search ( uint8_t(*) rom[8],
uint8_t * num )

search example find

Parameters
[in]*rompointer to a rom buffer
[in,out]*numpointer to a number buffer
Returns
status code
  • 0 success
  • 1 search failed
Note
none

Definition at line 86 of file driver_ds18b20_search.c.

Here is the call graph for this function:

◆ ds18b20_search_deinit()

uint8_t ds18b20_search_deinit ( void )

search example deinit

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

Definition at line 106 of file driver_ds18b20_search.c.

Here is the call graph for this function:

◆ ds18b20_search_init()

uint8_t ds18b20_search_init ( void )

search example init

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

Definition at line 49 of file driver_ds18b20_search.c.

Here is the call graph for this function: