<?xml version="1.0" encoding="UTF-8"?>
<!--
    Autogenerated for LSM303D v0.1.0.
    Generated from peripherals/LSM303D.yaml using Cyanobyte Codegen v0.1.0
-->
<device schemaVersion="1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="CMSIS-SVD_Schema_1_1.xsd">
    <vendor>Google Inc.</vendor>
    <name>LSM303D</name>
    <version>0.1.0</version>
    <description>STMicroelectronics accelerometer and magnetometer</description>
    <licenseText>
    Copyright (C) 2019 Google Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

    </licenseText>
    <!-- Placeholder values -->
    <addressUnitBits>8</addressUnitBits>
    <width>8</width>
    <!-- Define our peripheral -->
    <peripherals>
        <peripheral>
            <name>LSM303D</name>
            <description>STMicroelectronics accelerometer and magnetometer</description>
            <baseAddress>29</baseAddress>
            <addressBlock>
                <offset>0</offset>
                <size>255</size>
                <usage>registers</usage>
            </addressBlock>
            <registers>
                <register>
                    <name>AccelerometerX_High</name>
                    <description>Raw accelerometer data on X plane</description>
                    <addressOffset>169</addressOffset>
                    <size>8</size>
                    <access>read</access>
                    <resetValue>0x00</resetValue>
                    <resetMask>0xFF</resetMask>
                    <dataType>uint8_t</dataType>
                </register>
                <register>
                    <name>AccelerometerX_Low</name>
                    <description>Raw accelerometer data on X plane</description>
                    <addressOffset>168</addressOffset>
                    <size>8</size>
                    <access>read</access>
                    <resetValue>0x00</resetValue>
                    <resetMask>0xFF</resetMask>
                    <dataType>uint8_t</dataType>
                </register>
                <register>
                    <name>AccelerometerY_High</name>
                    <description>Raw accelerometer data on Y plane</description>
                    <addressOffset>171</addressOffset>
                    <size>8</size>
                    <access>read</access>
                    <resetValue>0x00</resetValue>
                    <resetMask>0xFF</resetMask>
                    <dataType>uint8_t</dataType>
                </register>
                <register>
                    <name>AccelerometerY_Low</name>
                    <description>Raw accelerometer data on Y plane</description>
                    <addressOffset>170</addressOffset>
                    <size>8</size>
                    <access>read</access>
                    <resetValue>0x00</resetValue>
                    <resetMask>0xFF</resetMask>
                    <dataType>uint8_t</dataType>
                </register>
                <register>
                    <name>AccelerometerZ_High</name>
                    <description>Raw accelerometer data on Z plane</description>
                    <addressOffset>173</addressOffset>
                    <size>8</size>
                    <access>read</access>
                    <resetValue>0x00</resetValue>
                    <resetMask>0xFF</resetMask>
                    <dataType>uint8_t</dataType>
                </register>
                <register>
                    <name>AccelerometerZ_Low</name>
                    <description>Raw accelerometer data on Z plane</description>
                    <addressOffset>172</addressOffset>
                    <size>8</size>
                    <access>read</access>
                    <resetValue>0x00</resetValue>
                    <resetMask>0xFF</resetMask>
                    <dataType>uint8_t</dataType>
                </register>
                <register>
                    <name>MagnetometerX_High</name>
                    <description>Raw magnetometer data on X plane</description>
                    <addressOffset>137</addressOffset>
                    <size>8</size>
                    <access>read</access>
                    <resetValue>0x00</resetValue>
                    <resetMask>0xFF</resetMask>
                    <dataType>uint8_t</dataType>
                </register>
                <register>
                    <name>MagnetometerX_Low</name>
                    <description>Raw magnetometer data on X plane</description>
                    <addressOffset>136</addressOffset>
                    <size>8</size>
                    <access>read</access>
                    <resetValue>0x00</resetValue>
                    <resetMask>0xFF</resetMask>
                    <dataType>uint8_t</dataType>
                </register>
                <register>
                    <name>MagnetometerY_High</name>
                    <description>Raw magnetometer data on Y plane</description>
                    <addressOffset>139</addressOffset>
                    <size>8</size>
                    <access>read</access>
                    <resetValue>0x00</resetValue>
                    <resetMask>0xFF</resetMask>
                    <dataType>uint8_t</dataType>
                </register>
                <register>
                    <name>MagnetometerY_Low</name>
                    <description>Raw magnetometer data on Y plane</description>
                    <addressOffset>138</addressOffset>
                    <size>8</size>
                    <access>read</access>
                    <resetValue>0x00</resetValue>
                    <resetMask>0xFF</resetMask>
                    <dataType>uint8_t</dataType>
                </register>
                <register>
                    <name>MagnetometerZ_High</name>
                    <description>Raw magnetometer data on Z plane</description>
                    <addressOffset>141</addressOffset>
                    <size>8</size>
                    <access>read</access>
                    <resetValue>0x00</resetValue>
                    <resetMask>0xFF</resetMask>
                    <dataType>uint8_t</dataType>
                </register>
                <register>
                    <name>MagnetometerZ_Low</name>
                    <description>Raw magnetometer data on Z plane</description>
                    <addressOffset>140</addressOffset>
                    <size>8</size>
                    <access>read</access>
                    <resetValue>0x00</resetValue>
                    <resetMask>0xFF</resetMask>
                    <dataType>uint8_t</dataType>
                </register>
            </registers>
        </peripheral>
    </peripherals>
</device>