LibDriver MAX30205
Loading...
Searching...
No Matches
max30205 example driver function

max30205 example driver modules More...

Collaboration diagram for max30205 example driver function:

Macros

#define MAX30205_BASIC_DEFAULT_DATA_FORMAT   MAX30205_DATA_FORMAT_NORMAL
 max30205 basic example default definition
#define MAX30205_BASIC_DEFAULT_INTERRUPT_MODE   MAX30205_INTERRUPT_MODE_COMPARATOR
#define MAX30205_BASIC_DEFAULT_FAULT_QUEUE   MAX30205_FAULT_QUEUE_1
#define MAX30205_BASIC_DEFAULT_PIN_POLARITY   MAX30205_PIN_POLARITY_LOW
#define MAX30205_BASIC_DEFAULT_BUS_TIMEOUT   MAX30205_BUS_TIMEOUT_DISABLE
#define MAX30205_BASIC_DEFAULT_INTERRUPT_LOW_THRESHOLD   35.0f
#define MAX30205_BASIC_DEFAULT_INTERRUPT_HIGH_THRESHOLD   39.0f
#define MAX30205_INTERRUPT_DEFAULT_DATA_FORMAT   MAX30205_DATA_FORMAT_NORMAL
 max30205 interrupt example default definition
#define MAX30205_INTERRUPT_DEFAULT_FAULT_QUEUE   MAX30205_FAULT_QUEUE_2
#define MAX30205_INTERRUPT_DEFAULT_PIN_POLARITY   MAX30205_PIN_POLARITY_LOW
#define MAX30205_INTERRUPT_DEFAULT_BUS_TIMEOUT   MAX30205_BUS_TIMEOUT_DISABLE
#define MAX30205_SHOT_DEFAULT_DATA_FORMAT   MAX30205_DATA_FORMAT_NORMAL
 max30205 shot example default definition
#define MAX30205_SHOT_DEFAULT_INTERRUPT_MODE   MAX30205_INTERRUPT_MODE_COMPARATOR
#define MAX30205_SHOT_DEFAULT_FAULT_QUEUE   MAX30205_FAULT_QUEUE_1
#define MAX30205_SHOT_DEFAULT_PIN_POLARITY   MAX30205_PIN_POLARITY_LOW
#define MAX30205_SHOT_DEFAULT_BUS_TIMEOUT   MAX30205_BUS_TIMEOUT_DISABLE
#define MAX30205_SHOT_DEFAULT_INTERRUPT_LOW_THRESHOLD   35.0f
#define MAX30205_SHOT_DEFAULT_INTERRUPT_HIGH_THRESHOLD   39.0f

Functions

uint8_t max30205_basic_init (max30205_address_t addr_pin)
 basic example init
uint8_t max30205_basic_deinit (void)
 basic example deinit
uint8_t max30205_basic_read (float *s)
 basic example read
uint8_t max30205_interrupt_init (max30205_address_t addr_pin, max30205_interrupt_mode_t mode, float low, float high)
 interrupt example init
uint8_t max30205_interrupt_deinit (void)
 interrupt example deinit
uint8_t max30205_interrupt_read (float *s)
 interrupt example read
uint8_t max30205_shot_init (max30205_address_t addr_pin)
 shot example init
uint8_t max30205_shot_deinit (void)
 shot example deinit
uint8_t max30205_shot_read (float *s)
 shot example read

Detailed Description

max30205 example driver modules

Macro Definition Documentation

◆ MAX30205_BASIC_DEFAULT_BUS_TIMEOUT

#define MAX30205_BASIC_DEFAULT_BUS_TIMEOUT   MAX30205_BUS_TIMEOUT_DISABLE

disable bus timeout

Definition at line 61 of file driver_max30205_basic.h.

◆ MAX30205_BASIC_DEFAULT_DATA_FORMAT

#define MAX30205_BASIC_DEFAULT_DATA_FORMAT   MAX30205_DATA_FORMAT_NORMAL

max30205 basic example default definition

normal data format

Definition at line 57 of file driver_max30205_basic.h.

◆ MAX30205_BASIC_DEFAULT_FAULT_QUEUE

#define MAX30205_BASIC_DEFAULT_FAULT_QUEUE   MAX30205_FAULT_QUEUE_1

fault queue 1

Definition at line 59 of file driver_max30205_basic.h.

◆ MAX30205_BASIC_DEFAULT_INTERRUPT_HIGH_THRESHOLD

#define MAX30205_BASIC_DEFAULT_INTERRUPT_HIGH_THRESHOLD   39.0f

39.0 high threshold interrupt

Definition at line 63 of file driver_max30205_basic.h.

◆ MAX30205_BASIC_DEFAULT_INTERRUPT_LOW_THRESHOLD

#define MAX30205_BASIC_DEFAULT_INTERRUPT_LOW_THRESHOLD   35.0f

35.0 low threshold interrupt

Definition at line 62 of file driver_max30205_basic.h.

◆ MAX30205_BASIC_DEFAULT_INTERRUPT_MODE

#define MAX30205_BASIC_DEFAULT_INTERRUPT_MODE   MAX30205_INTERRUPT_MODE_COMPARATOR

comparator mode

Definition at line 58 of file driver_max30205_basic.h.

◆ MAX30205_BASIC_DEFAULT_PIN_POLARITY

#define MAX30205_BASIC_DEFAULT_PIN_POLARITY   MAX30205_PIN_POLARITY_LOW

polarity low

Definition at line 60 of file driver_max30205_basic.h.

◆ MAX30205_INTERRUPT_DEFAULT_BUS_TIMEOUT

#define MAX30205_INTERRUPT_DEFAULT_BUS_TIMEOUT   MAX30205_BUS_TIMEOUT_DISABLE

disable bus timeout

Definition at line 58 of file driver_max30205_interrupt.h.

◆ MAX30205_INTERRUPT_DEFAULT_DATA_FORMAT

#define MAX30205_INTERRUPT_DEFAULT_DATA_FORMAT   MAX30205_DATA_FORMAT_NORMAL

max30205 interrupt example default definition

normal data format

Definition at line 55 of file driver_max30205_interrupt.h.

◆ MAX30205_INTERRUPT_DEFAULT_FAULT_QUEUE

#define MAX30205_INTERRUPT_DEFAULT_FAULT_QUEUE   MAX30205_FAULT_QUEUE_2

fault queue 2

Definition at line 56 of file driver_max30205_interrupt.h.

◆ MAX30205_INTERRUPT_DEFAULT_PIN_POLARITY

#define MAX30205_INTERRUPT_DEFAULT_PIN_POLARITY   MAX30205_PIN_POLARITY_LOW

polarity low

Definition at line 57 of file driver_max30205_interrupt.h.

◆ MAX30205_SHOT_DEFAULT_BUS_TIMEOUT

#define MAX30205_SHOT_DEFAULT_BUS_TIMEOUT   MAX30205_BUS_TIMEOUT_DISABLE

disable bus timeout

Definition at line 59 of file driver_max30205_shot.h.

◆ MAX30205_SHOT_DEFAULT_DATA_FORMAT

#define MAX30205_SHOT_DEFAULT_DATA_FORMAT   MAX30205_DATA_FORMAT_NORMAL

max30205 shot example default definition

normal data format

Definition at line 55 of file driver_max30205_shot.h.

◆ MAX30205_SHOT_DEFAULT_FAULT_QUEUE

#define MAX30205_SHOT_DEFAULT_FAULT_QUEUE   MAX30205_FAULT_QUEUE_1

fault queue 1

Definition at line 57 of file driver_max30205_shot.h.

◆ MAX30205_SHOT_DEFAULT_INTERRUPT_HIGH_THRESHOLD

#define MAX30205_SHOT_DEFAULT_INTERRUPT_HIGH_THRESHOLD   39.0f

39.0 high threshold interrupt

Definition at line 61 of file driver_max30205_shot.h.

◆ MAX30205_SHOT_DEFAULT_INTERRUPT_LOW_THRESHOLD

#define MAX30205_SHOT_DEFAULT_INTERRUPT_LOW_THRESHOLD   35.0f

35.0 low threshold interrupt

Definition at line 60 of file driver_max30205_shot.h.

◆ MAX30205_SHOT_DEFAULT_INTERRUPT_MODE

#define MAX30205_SHOT_DEFAULT_INTERRUPT_MODE   MAX30205_INTERRUPT_MODE_COMPARATOR

comparator mode

Definition at line 56 of file driver_max30205_shot.h.

◆ MAX30205_SHOT_DEFAULT_PIN_POLARITY

#define MAX30205_SHOT_DEFAULT_PIN_POLARITY   MAX30205_PIN_POLARITY_LOW

polarity low

Definition at line 58 of file driver_max30205_shot.h.

Function Documentation

◆ max30205_basic_deinit()

uint8_t max30205_basic_deinit ( void )

basic example deinit

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

Definition at line 216 of file driver_max30205_basic.c.

Here is the call graph for this function:

◆ max30205_basic_init()

uint8_t max30205_basic_init ( max30205_address_t addr_pin)

basic example init

Parameters
[in]addr_piniic device address
Returns
status code
  • 0 success
  • 1 init failed
Note
none

Definition at line 50 of file driver_max30205_basic.c.

Here is the call graph for this function:

◆ max30205_basic_read()

uint8_t max30205_basic_read ( float * s)

basic example read

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

Definition at line 194 of file driver_max30205_basic.c.

Here is the call graph for this function:

◆ max30205_interrupt_deinit()

uint8_t max30205_interrupt_deinit ( void )

interrupt example deinit

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

Definition at line 219 of file driver_max30205_interrupt.c.

Here is the call graph for this function:

◆ max30205_interrupt_init()

uint8_t max30205_interrupt_init ( max30205_address_t addr_pin,
max30205_interrupt_mode_t mode,
float low,
float high )

interrupt example init

Parameters
[in]addr_piniic device address
[in]modeinterrupt mode
[in]lowinterrupt low threshold
[in]highinterrupt high threshold
Returns
status code
  • 0 success
  • 1 init failed
Note
none

Definition at line 53 of file driver_max30205_interrupt.c.

Here is the call graph for this function:

◆ max30205_interrupt_read()

uint8_t max30205_interrupt_read ( float * s)

interrupt example read

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

Definition at line 197 of file driver_max30205_interrupt.c.

Here is the call graph for this function:

◆ max30205_shot_deinit()

uint8_t max30205_shot_deinit ( void )

shot example deinit

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

Definition at line 206 of file driver_max30205_shot.c.

Here is the call graph for this function:

◆ max30205_shot_init()

uint8_t max30205_shot_init ( max30205_address_t addr_pin)

shot example init

Parameters
[in]addr_piniic device address
Returns
status code
  • 0 success
  • 1 init failed
Note
none

Definition at line 50 of file driver_max30205_shot.c.

Here is the call graph for this function:

◆ max30205_shot_read()

uint8_t max30205_shot_read ( float * s)

shot example read

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

Definition at line 184 of file driver_max30205_shot.c.

Here is the call graph for this function: