c1wirei2c
2.1.0.0
|
1-Wire I2C Click carries DS28E17 1-Wire-to-I2C master bridge from Analog Devices.
We provide a library for the 1-Wire I2C Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for 1-Wire I2C Click driver.
c1wirei2c_cfg_setup
Config Object Initialization function. c1wirei2c_init
Initialization function. c1wirei2c_default_cfg
Click Default Configuration function. c1wirei2c_reset_device
This function resets the device by toggling the RST pin state. c1wirei2c_write_data
This function addresses and writes 1-255 bytes to an I2C slave without completing the transaction with a stop. c1wirei2c_read_data_stop
This function is used to address and read 1-255 bytes from an I2C slave in one transaction. This example demonstrates the use of 1-Wire I2C Click board by reading the temperature measurement from connected Thermo 4 Click board.
The demo application is composed of two sections :
Initializes the driver and performs the Click default configuration.
Reads the temperature measurement from connected Thermo 4 Click board and displays the results on the USB UART once per second.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART Click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.