Home | History | Annotate | Download | only in ftdi

Lines Matching refs:pin

277     /* During reads and writes the chip select pin is brought low */
306 /* Keep the clock low while the CS pin is brought high to ensure we
323 * high when we set the CS pin high to prevent
326 * after the CS pin goes high.
376 /* Set the idle pin states */
553 * Sets the idle state of the chip select pin. CS idles high by default.
606 /* Set the default pin states while the clock is low since this is an I2C
1013 * Sets the specified pin high.
1016 * @pin - Pin number to set high.
1021 int PinHigh(struct mpsse_context* mpsse, int pin) {
1025 retval = gpio_write(mpsse, pin, HIGH);
1032 * Sets the specified pin low.
1035 * @pin - Pin number to set low.
1040 int PinLow(struct mpsse_context* mpsse, int pin) {
1044 retval = gpio_write(mpsse, pin, LOW);
1099 * Returns a byte with the corresponding pin's bits set to 1 or 0.
1112 * Checks if a specific pin is high or low. For use in BITBANG mode only.
1115 * @pin - The pin number.
1119 * Returns a 1 if the pin is high, 0 if the pin is low.
1121 int PinState(struct mpsse_context* mpsse, int pin, int state) {
1126 /* If not in bitbang mode, the specified pin should be one of GPIOLx. Convert
1127 * these defines into an absolute pin number. */
1129 pin += NUM_GPIOL_PINS;
1132 return ((state & (1 << pin)) >> pin);