LibDriver ADS1115
Loading...
Searching...
No Matches
ads1115 test driver function

ads1115 test driver modules More...

Collaboration diagram for ads1115 test driver function:

Functions

uint8_t ads1115_compare_test (ads1115_address_t addr, ads1115_channel_t channel, ads1115_compare_t compare, float f_high_threshold, float f_low_threshold, uint32_t times)
 compare test
uint8_t ads1115_multichannel_test (ads1115_address_t addr, ads1115_channel_t channel, uint32_t times)
 multichannel test
uint8_t ads1115_read_test (ads1115_address_t addr, uint32_t times)
 read test
uint8_t ads1115_register_test (ads1115_address_t addr)
 register test

Detailed Description

ads1115 test driver modules

Function Documentation

◆ ads1115_compare_test()

uint8_t ads1115_compare_test ( ads1115_address_t addr,
ads1115_channel_t channel,
ads1115_compare_t compare,
float f_high_threshold,
float f_low_threshold,
uint32_t times )

compare test

Parameters
[in]addriic device address
[in]channeladc channel
[in]compareinterrupt compare mode
[in]f_high_thresholdinterrupt high threshold
[in]f_low_thresholdinterrupt low threshold
[in]timestest times
Returns
status code
  • 0 success
  • 1 test failed
Note
none

Definition at line 55 of file driver_ads1115_compare_test.c.

Here is the call graph for this function:

◆ ads1115_multichannel_test()

uint8_t ads1115_multichannel_test ( ads1115_address_t addr,
ads1115_channel_t channel,
uint32_t times )

multichannel test

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

Definition at line 52 of file driver_ads1115_mutichannel_test.c.

Here is the call graph for this function:

◆ ads1115_read_test()

uint8_t ads1115_read_test ( ads1115_address_t addr,
uint32_t times )

read test

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

Definition at line 51 of file driver_ads1115_read_test.c.

Here is the call graph for this function:

◆ ads1115_register_test()

uint8_t ads1115_register_test ( ads1115_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_ads1115_register_test.c.

Here is the call graph for this function: