LibDriver MAX44009
Loading...
Searching...
No Matches
max44009 example driver function

max44009 example driver modules More...

Collaboration diagram for max44009 example driver function:

Macros

#define MAX44009_BASIC_DEFAULT_AUTO_RANGE   MAX44009_BOOL_TRUE
 max44009 basic example default definition
#define MAX44009_BASIC_DEFAULT_CONTINUOUS_MODE   MAX44009_BOOL_TRUE
#define MAX44009_BASIC_DEFAULT_CURRENT_DIV_8   MAX44009_BOOL_FALSE
#define MAX44009_BASIC_DEFAULT_INTEGRATION_TIME   MAX44009_INTEGRATION_TIME_200MS
#define MAX44009_INTERRUPT_DEFAULT_AUTO_RANGE   MAX44009_BOOL_TRUE
 max44009 interrupt example default definition
#define MAX44009_INTERRUPT_DEFAULT_CONTINUOUS_MODE   MAX44009_BOOL_TRUE
#define MAX44009_INTERRUPT_DEFAULT_CURRENT_DIV_8   MAX44009_BOOL_FALSE
#define MAX44009_INTERRUPT_DEFAULT_INTEGRATION_TIME   MAX44009_INTEGRATION_TIME_200MS

Functions

uint8_t max44009_basic_init (max44009_address_t addr_pin)
 basic example init
uint8_t max44009_basic_read (float *lux)
 basic example read
uint8_t max44009_basic_deinit (void)
 basic example deinit
uint8_t max44009_interrupt_init (max44009_address_t addr_pin, float low_threshold_lux, float high_threshold_lux, float time_ms)
 interrupt example init
uint8_t max44009_interrupt_read (float *lux)
 interrupt example read
uint8_t max44009_interrupt_deinit (void)
 interrupt example deinit

Detailed Description

max44009 example driver modules

Macro Definition Documentation

◆ MAX44009_BASIC_DEFAULT_AUTO_RANGE

#define MAX44009_BASIC_DEFAULT_AUTO_RANGE   MAX44009_BOOL_TRUE

max44009 basic example default definition

enable auto range

Definition at line 56 of file driver_max44009_basic.h.

◆ MAX44009_BASIC_DEFAULT_CONTINUOUS_MODE

#define MAX44009_BASIC_DEFAULT_CONTINUOUS_MODE   MAX44009_BOOL_TRUE

enable continuous mode

Definition at line 57 of file driver_max44009_basic.h.

◆ MAX44009_BASIC_DEFAULT_CURRENT_DIV_8

#define MAX44009_BASIC_DEFAULT_CURRENT_DIV_8   MAX44009_BOOL_FALSE

disable current div 8

Definition at line 58 of file driver_max44009_basic.h.

◆ MAX44009_BASIC_DEFAULT_INTEGRATION_TIME

#define MAX44009_BASIC_DEFAULT_INTEGRATION_TIME   MAX44009_INTEGRATION_TIME_200MS

200ms

Definition at line 59 of file driver_max44009_basic.h.

◆ MAX44009_INTERRUPT_DEFAULT_AUTO_RANGE

#define MAX44009_INTERRUPT_DEFAULT_AUTO_RANGE   MAX44009_BOOL_TRUE

max44009 interrupt example default definition

enable auto range

Definition at line 54 of file driver_max44009_interrupt.h.

◆ MAX44009_INTERRUPT_DEFAULT_CONTINUOUS_MODE

#define MAX44009_INTERRUPT_DEFAULT_CONTINUOUS_MODE   MAX44009_BOOL_TRUE

enable continuous mode

Definition at line 55 of file driver_max44009_interrupt.h.

◆ MAX44009_INTERRUPT_DEFAULT_CURRENT_DIV_8

#define MAX44009_INTERRUPT_DEFAULT_CURRENT_DIV_8   MAX44009_BOOL_FALSE

disable current div 8

Definition at line 56 of file driver_max44009_interrupt.h.

◆ MAX44009_INTERRUPT_DEFAULT_INTEGRATION_TIME

#define MAX44009_INTERRUPT_DEFAULT_INTEGRATION_TIME   MAX44009_INTEGRATION_TIME_200MS

200ms

Definition at line 57 of file driver_max44009_interrupt.h.

Function Documentation

◆ max44009_basic_deinit()

uint8_t max44009_basic_deinit ( void )

basic example deinit

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

Definition at line 165 of file driver_max44009_basic.c.

Here is the call graph for this function:

◆ max44009_basic_init()

uint8_t max44009_basic_init ( max44009_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 49 of file driver_max44009_basic.c.

Here is the call graph for this function:

◆ max44009_basic_read()

uint8_t max44009_basic_read ( float * lux)

basic example read

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

Definition at line 143 of file driver_max44009_basic.c.

Here is the call graph for this function:

◆ max44009_interrupt_deinit()

uint8_t max44009_interrupt_deinit ( void )

interrupt example deinit

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

Definition at line 229 of file driver_max44009_interrupt.c.

Here is the call graph for this function:

◆ max44009_interrupt_init()

uint8_t max44009_interrupt_init ( max44009_address_t addr_pin,
float low_threshold_lux,
float high_threshold_lux,
float time_ms )

interrupt example init

Parameters
[in]addr_piniic device address
[in]low_threshold_luxlow threshold in lux
[in]high_threshold_luxhigh threshold in lux
[in]time_msthreshold time in ms
Returns
status code
  • 0 success
  • 1 init failed
Note
none

Definition at line 52 of file driver_max44009_interrupt.c.

Here is the call graph for this function:

◆ max44009_interrupt_read()

uint8_t max44009_interrupt_read ( float * lux)

interrupt example read

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

Definition at line 207 of file driver_max44009_interrupt.c.

Here is the call graph for this function: