ATTSK2/tof_demo/vl53l0x_i2c.c
//
// Deinitialize the WNC module I2C interface and reset the 
//  the VL53L0X_Device.
//
Deinitialize the WNC module I2C interface and reset the
the VL53L0X_Device.
Deinitialize the WNC module I2C interface and reset the the VL53L0X_Device .
int VL53L0X_i2c_close(VL53L0X_Dev_t *pMyDevice)
{
    gpio_write(enPin,  GPIO_LEVEL_LOW );         
    gpio_deinit(&drPin);
    gpio_deinit(&enPin);
    pMyDevice->I2cDevAddr      = VL53L0X_SAD;
    pMyDevice->comms_type      =  I2C_MODE;
    return i2c_bus_deinit(&i2c_handle);
}
int VL53L0X_i2c_close ( VL53L0X_Dev_t * pMyDevice ) { gpio_write ( enPin , GPIO_LEVEL_LOW ) ; gpio_deinit ( & drPin ) ; gpio_deinit ( & enPin ) ; pMyDevice -> I2cDevAddr = VL53L0X_SAD ; pMyDevice -> comms_type = I2C_MODE ; return i2c_bus_deinit ( & i2c_handle ) ; }
Deinitialize the WNC module I2C interface and reset the
the VL53L0X_Device.
Deinitialize the WNC module I2C interface and reset the the VL53L0X_Device .