LibDriver TSL2561
Loading...
Searching...
No Matches
tsl2561 test driver function

tsl2561 test driver modules More...

Collaboration diagram for tsl2561 test driver function:

Functions

uint8_t tsl2561_interrupt_test (tsl2561_address_t addr_pin, tsl2561_interrupt_mode_t mode, uint16_t ch0_low_threshold, uint16_t ch0_high_threshold, uint32_t times)
 interrupt test
uint8_t tsl2561_read_test (tsl2561_address_t addr_pin, uint32_t times)
 read test
uint8_t tsl2561_register_test (tsl2561_address_t addr)
 register test

Detailed Description

tsl2561 test driver modules

Function Documentation

◆ tsl2561_interrupt_test()

uint8_t tsl2561_interrupt_test ( tsl2561_address_t addr_pin,
tsl2561_interrupt_mode_t mode,
uint16_t ch0_low_threshold,
uint16_t ch0_high_threshold,
uint32_t times )

interrupt test

Parameters
[in]addr_piniic device address
[in]modeinterrupt mode
[in]ch0_low_thresholdchannel 0 interrupt low threshold
[in]ch0_high_thresholdchannel 0 interrupt high threshold
[in]timestest times
Returns
status code
  • 0 success
  • 1 test failed
Note
none

Definition at line 54 of file driver_tsl2561_interrupt_test.c.

Here is the call graph for this function:

◆ tsl2561_read_test()

uint8_t tsl2561_read_test ( tsl2561_address_t addr_pin,
uint32_t times )

read test

Parameters
[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_tsl2561_read_test.c.

Here is the call graph for this function:

◆ tsl2561_register_test()

uint8_t tsl2561_register_test ( tsl2561_address_t addr)

register test

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

Definition at line 51 of file driver_tsl2561_register_test.c.

Here is the call graph for this function: