From dd53b2b837926d2a6466f18355294f499f79768a Mon Sep 17 00:00:00 2001 From: Daniel Esteban Date: Sat, 27 Jan 2018 20:17:40 +0100 Subject: [PATCH] added documentation to private structs change filenames to lower case --- drivers/i2c/{ADXL345_driver.go => adxl345_driver.go} | 3 +++ drivers/i2c/{ADXL345_driver_test.go => adxl345_driver_test.go} | 0 2 files changed, 3 insertions(+) rename drivers/i2c/{ADXL345_driver.go => adxl345_driver.go} (98%) rename drivers/i2c/{ADXL345_driver_test.go => adxl345_driver_test.go} (100%) diff --git a/drivers/i2c/ADXL345_driver.go b/drivers/i2c/adxl345_driver.go similarity index 98% rename from drivers/i2c/ADXL345_driver.go rename to drivers/i2c/adxl345_driver.go index ec9b4af4..82b3ccc7 100644 --- a/drivers/i2c/ADXL345_driver.go +++ b/drivers/i2c/adxl345_driver.go @@ -88,6 +88,7 @@ type ADXL345Driver struct { Config } +// Internal structure for the power configuration type adxl345PowerCtl struct { link uint8 autoSleep uint8 @@ -96,6 +97,7 @@ type adxl345PowerCtl struct { wakeUp uint8 } +// Internal structure for the sensor's data format configuration type adxl345DataFormat struct { selfTest uint8 spi uint8 @@ -105,6 +107,7 @@ type adxl345DataFormat struct { sensorRange uint8 } +// Internal structure for the sampling rate configuration type adxl345BwRate struct { lowPower uint8 rate uint8 diff --git a/drivers/i2c/ADXL345_driver_test.go b/drivers/i2c/adxl345_driver_test.go similarity index 100% rename from drivers/i2c/ADXL345_driver_test.go rename to drivers/i2c/adxl345_driver_test.go