All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bidib.jbidibc.ch341a.AT24CX Maven / Gradle / Ivy

Go to download

jBiDiB jbidibc USB POM Install the libusb drivers for using the libusb access. Under Windows OS you must install the Zadig driver as described here: https://github.com/libusb/libusb/wiki/Windows. Zadic can be downloaded from: http://zadig.akeo.ie/ In the Zadig UI you must check Options > List all devices and the select the 'USB-EPP /I2C... CH341A' device. Then select the target driver with the spinners (I used libusb-win32 (v1.2.6.0)) and click the 'Install driver' button.

The newest version!
package org.bidib.jbidibc.ch341a;

public interface AT24CX {

    // AT24Cx I2C adress
    // 80
    // 0x50
    // B1010000
    public static final int AT24CX_ID = 0x50;

    /**
     * Open CH341A device with the provided index. For the first device use {@code 0}.
     * 
     * @param ch341Index
     *            the CH341 device index
     */
    void open(long ch341Index);

    /**
     * Close the CH341A device.
     */
    void close();

    /**
     * Read a byte from memory at address.
     * 
     * @param memAddress
     *            the memory address
     * @return the bye
     */
    public byte read(int memAddress);

    public byte[] read(int address, int size);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy