RTEMS 6.1-rc1
Macros | Variables
i2c-sc620.c File Reference

I2C Driver for SEMTECH SC620 Octal LED Driver. More...

#include <libchip/i2c-sc620.h>
#include <rtems/libio.h>

Macros

#define SC620_REG_COUNT   10
 

Variables

rtems_libi2c_drv_t i2c_sc620_driver
 I2C driver for SEMTECH SC620 octal LED driver. More...
 

Detailed Description

I2C Driver for SEMTECH SC620 Octal LED Driver.

Variable Documentation

◆ i2c_sc620_driver

rtems_libi2c_drv_t i2c_sc620_driver
Initial value:
= {
.ops = &i2c_sc620_ops,
.size = sizeof(i2c_sc620_driver)
}
rtems_libi2c_drv_t i2c_sc620_driver
I2C driver for SEMTECH SC620 octal LED driver.
Definition: i2c-sc620.c:101

I2C driver for SEMTECH SC620 octal LED driver.

A write() must use two character buffer. The buffer[0] value specifies the register and the buffer[1] value specifies the register data.

A read() must use a one character buffer. The buffer[0] value specifies the register on function entry. The buffer[0] value contains the register value after a successful operation.