# doc-cache created by Octave 9.4.0
# name: cache
# type: cell
# rows: 3
# columns: 1
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
lis3dh


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1873
 -- lis3dh
     LIS3DH 3 degrees sensor

Methods
-------

 -- OBJ = lis3dh(AROBJ)
 -- OBJ = lis3dh(AROBJ, PROPERTYNAME, PROPERTYVALUE ....)
     Constructor to create LIS3DH sensor

     Inputs
     ......

     AROBJ - the arduino parent object

     PROPERTYNAME, PROPERTYVALUE - optional property name, value pairs.
     Current known properties are: Current properties are:
     I2CAddress
          I2C address of the sensor (default 0x40)
     Bus
          I2C bus - 0 or 1 (default 0)

     Outputs
     .......

     OBJ - created object

     Example
     .......


          a = arduino()
          sensor = lis3dh(a)


 -- [READVAL, TIMESTAMP] = readAcceleration(OBJ)
     Read the acceleration rate

     Inputs
     ......

     OBJ - the sensor object

     Outputs
     .......

     READVAL - the 3 acceleration values

     TIMESTAMP - timestamp when read

 -- [READINGS, OVERRUN] = read(OBJ)
 -- [ACCEL, TIMESTAMP, OVERRUN] = read(OBJ)
     Read the sensor data

     Inputs
     ......

     OBJ - the sensor object

     Outputs
     .......

     ACCEL - acceleration reading from sensor.

     TIMESTAMP - timestamp when read

     OVERRUN - overrun flag.

     READINGS - table structure with fields for Timestamp, Acceleration.

 -- INF = info(OBJ)
     Read the sensor info

     Inputs
     ......

     OBJ - the sensor object

     Outputs
     .......

     INF - structure containing the sensor information.

     Structure fields are:
     SensorId
          sensor id value
     Type
          sensor type 'lis3dh'
     Status
          sensor status value

 -- flush(OBJ)
     Flush sensor data

     Inputs
     ......

     OBJ - the sensor object

     Outputs
     .......

     None

 -- release(OBJ)
     Release the resources of the sensor

     Inputs
     ......

     OBJ - the sensor object

     Outputs
     .......

     None


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 23
LIS3DH 3 degrees sensor





