/* This API writes the given data to the register address of sensor.  */
static int8_t isl29035_set_regs(uint8_t reg_addr, uint8_t *data, uint16_t len, const struct isl29035_dev *dev)
/* This API writes the given data to the register address of sensor.  */
static int8_t isl29035_set_regs(uint8_t reg_addr, uint8_t *data, uint16_t len, const struct isl29035_dev *dev)
{
    int8_t rslt = ISL29035_OK;
    if ((dev == NULL) || (dev->write == NULL)) {
        rslt = ISL29035_E_NULL_PTR;
    } else {
        rslt = dev->write(dev->id,reg_addr, data, len);
        if (rslt != ISL29035_OK)
            rslt = ISL29035_E_COM_FAIL;
    }
    return rslt;
}