Home | History | Annotate | Download | only in i2c

Lines Matching defs:SDA

55 #define	SDA		ops->ibo_bits[I2C_BIT_SDA]	/* i2c signal */
57 #define OUTPUT ops->ibo_bits[I2C_BIT_OUTPUT] /* SDA is output */
58 #define INPUT ops->ibo_bits[I2C_BIT_INPUT] /* SDA is input */
87 /* start condition: put SDA H->L edge during SCL=H */
90 SETBITS(SDA | SCL);
97 /* leave SCL=L and SDA=L to avoid unexpected start/stop condition */
108 /* stop condition: put SDA L->H edge during SCL=H */
110 /* assume SCL=L, SDA=L here */
114 SETBITS(SDA | SCL);
165 /* assume SCL=L, SDA=L here */
173 /* SDA is set here because DIR() is INPUT */
174 SETBITS(SDA | 0);
178 SETBITS(SDA | SCL);
181 if (READ & SDA)
185 /* set SCL H->L before set SDA direction OUTPUT */
186 SETBITS(SDA | 0);
189 bit = (flags & I2C_F_LAST) ? SDA : 0;
200 /* set SCL H->L for next data; don't change SDA here */
203 /* leave SCL=L and SDA=L to avoid unexpected start/stop condition */
221 /* assume at SCL=L, SDA=L here */
226 bit = (val & mask) ? SDA : 0;
238 /* put SCL H->L edge; don't change SDA here */
247 /* SDA is set here because DIR() is INPUT */
248 SETBITS(SDA | SCL);
251 error = (READ & SDA) ? EIO : 0;
254 /* set SCL H->L before set SDA direction OUTPUT */
255 SETBITS(SDA | 0);
257 /* leave SCL=L and SDA=L to avoid unexpected start/stop condition */