static inline void setsck(struct spi_device *s, int is_on) { struct spi_lm70llp *pp = spidev_to_pp(s); if (is_on) clkHigh(pp); else clkLow(pp); }
signed short DeviceLM74::read(void) { int i; signed short ret; ret = 0; implSelectEnable(); { for (i = 0; i < 16; ++i) { clkHigh(); ret <<= 1; if (!dataIsLow()) ret |= 1; clkLow(); } } implSelectDisable(); return (ret >> 3); }