Branch Coverage

ADS.xs
Criterion Covered Total %
branch 0 30 0.0


line true false branch
33 0 0 if (samples < 1){
39 0 0 if (i2c_file == -1){
44 0 0 if (ioctl(i2c_file, I2C_SLAVE, addr) < 0){
57 0 0 for (int s = 0; s < samples; s++){
68 0 0 while (! got){
70 0 0 if (++attempts > MAX_I2C_ATTEMPTS){
83 0 0 if (write(i2c_file, write_buf, 3) != 3){
92 0 0 while ((read_buf[0] & 0x80) == 0){
93 0 0 if (read(i2c_file, read_buf, 2) != 2){
99 0 0 if (! ready){
107 0 0 if (write(i2c_file, write_buf, 1) != 1){
111 0 0 if (read(i2c_file, read_buf, 2) != 2){
117 0 0 if (res == 12){
154 0 0 float fs = (res == 12) ? ADS_FS_12 : ADS_FS_16;
171 0 0 float fs = (res == 12) ? ADS_FS_12 : ADS_FS_16;