LibDriver OPT300X
Loading...
Searching...
No Matches
opt300x test driver function

opt300x test driver modules More...

Collaboration diagram for opt300x test driver function:

Functions

uint8_t opt300x_interrupt_test_irq_handler (void)
 interrupt test irq
uint8_t opt300x_interrupt_test (opt300x_t type, opt300x_address_t addr_pin, float low_threshold, float high_threshold, uint32_t times)
 interrupt test
uint8_t opt300x_read_test (opt300x_t type, opt300x_address_t addr_pin, uint32_t times)
 read test
uint8_t opt300x_register_test (opt300x_t type, opt300x_address_t addr)
 register test

Detailed Description

opt300x test driver modules

Function Documentation

◆ opt300x_interrupt_test()

uint8_t opt300x_interrupt_test ( opt300x_t type,
opt300x_address_t addr_pin,
float low_threshold,
float high_threshold,
uint32_t times )

interrupt test

Parameters
[in]typechip type
[in]addr_piniic device address
[in]low_thresholdlow threshold in lux or in nw/cm2
[in]high_thresholdhigh threshold in lux or in nw/cm2
[in]timestest times
Returns
status code
  • 0 success
  • 1 test failed
Note
none

Definition at line 103 of file driver_opt300x_interrupt_test.c.

Here is the call graph for this function:

◆ opt300x_interrupt_test_irq_handler()

uint8_t opt300x_interrupt_test_irq_handler ( void )

interrupt test irq

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

Definition at line 49 of file driver_opt300x_interrupt_test.c.

Here is the call graph for this function:

◆ opt300x_read_test()

uint8_t opt300x_read_test ( opt300x_t type,
opt300x_address_t addr_pin,
uint32_t times )

read test

Parameters
[in]typechip type
[in]addr_piniic device address
[in]timestest times
Returns
status code
  • 0 success
  • 1 test failed
Note
none

Definition at line 51 of file driver_opt300x_read_test.c.

Here is the call graph for this function:

◆ opt300x_register_test()

uint8_t opt300x_register_test ( opt300x_t type,
opt300x_address_t addr )

register test

Parameters
[in]typechip type
[in]addriic device address
Returns
status code
  • 0 success
  • 1 test failed
Note
none

Definition at line 51 of file driver_opt300x_register_test.c.

Here is the call graph for this function: