<?xml version="1.0" encoding="UTF-8"?>
<!--
    Autogenerated for BH1750FVI v0.1.0.
    Generated from peripherals/BH1750FVI.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>BH1750FVI</name>
    <version>0.1.0</version>
    <description>Rohm Light Sensor</description>
    <licenseText>
    Copyright (C) 2020 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>BH1750FVI</name>
            <description>Rohm Light Sensor</description>
            <baseAddress>35</baseAddress>
            <addressBlock>
                <offset>0</offset>
                <size>255</size>
                <usage>registers</usage>
            </addressBlock>
            <registers>
                <register>
                    <name>ContinuousHRes2Mode</name>
                    <description>Start measurement at 0.5lx resolution. Typically 120ms.</description>
                    <addressOffset>17</addressOffset>
                    <size>0</size>
                    <access>write</access>
                    <resetValue>0x00</resetValue>
                    <resetMask>0xFF</resetMask>
                    <dataType>uint8_t</dataType>
                </register>
                <register>
                    <name>ContinuousHResMode</name>
                    <description>Start measurement at 1lx resolution. Typically 120ms.</description>
                    <addressOffset>16</addressOffset>
                    <size>0</size>
                    <access>write</access>
                    <resetValue>0x00</resetValue>
                    <resetMask>0xFF</resetMask>
                    <dataType>uint8_t</dataType>
                </register>
                <register>
                    <name>ContinuouslyLResMode</name>
                    <description>Start measurement at 4lx resolution. Typically 16ms.</description>
                    <addressOffset>19</addressOffset>
                    <size>0</size>
                    <access>write</access>
                    <resetValue>0x00</resetValue>
                    <resetMask>0xFF</resetMask>
                    <dataType>uint8_t</dataType>
                </register>
                <register>
                    <name>OnceHRes2Mode</name>
                    <description>Start measurement at 0.5lx resolution. Typically 120ms.
Power Down after measurement.
</description>
                    <addressOffset>33</addressOffset>
                    <size>0</size>
                    <access>write</access>
                    <resetValue>0x00</resetValue>
                    <resetMask>0xFF</resetMask>
                    <dataType>uint8_t</dataType>
                </register>
                <register>
                    <name>OnceHResMode</name>
                    <description>Start measurement at 1lx resolution. Typically 120ms.
Power Down after measurement.
</description>
                    <addressOffset>32</addressOffset>
                    <size>0</size>
                    <access>write</access>
                    <resetValue>0x00</resetValue>
                    <resetMask>0xFF</resetMask>
                    <dataType>uint8_t</dataType>
                </register>
                <register>
                    <name>OnceLResMode</name>
                    <description>Start measurement at 4lx resolution. Typically 16ms.
Power Down after measurement.
</description>
                    <addressOffset>35</addressOffset>
                    <size>0</size>
                    <access>write</access>
                    <resetValue>0x00</resetValue>
                    <resetMask>0xFF</resetMask>
                    <dataType>uint8_t</dataType>
                </register>
                <register>
                    <name>PowerDown</name>
                    <description>No active state</description>
                    <addressOffset>0</addressOffset>
                    <size>0</size>
                    <access>write</access>
                    <resetValue>0x00</resetValue>
                    <resetMask>0xFF</resetMask>
                    <dataType>uint8_t</dataType>
                </register>
                <register>
                    <name>PowerOn</name>
                    <description>Waiting for measurement command</description>
                    <addressOffset>1</addressOffset>
                    <size>0</size>
                    <access>write</access>
                    <resetValue>0x00</resetValue>
                    <resetMask>0xFF</resetMask>
                    <dataType>uint8_t</dataType>
                </register>
                <register>
                    <name>Reset</name>
                    <description>Reset data register value. Not accepted in Power Down mode.</description>
                    <addressOffset>7</addressOffset>
                    <size>0</size>
                    <access>write</access>
                    <resetValue>0x00</resetValue>
                    <resetMask>0xFF</resetMask>
                    <dataType>uint8_t</dataType>
                </register>
            </registers>
        </peripheral>
    </peripherals>
</device>