| // Copyright 2022 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| { |
| include: [ |
| 'syslog/client.shard.cml', |
| ], |
| program: { |
| runner: 'driver', |
| binary: 'lib/libi2c_temperature.so', |
| bind: 'meta/bind/i2c_temperature.bindbc', |
| // Identifies the device categories, for compatibility tests. |
| device_categories: [ |
| { category: 'board', subcategory: 'i2c' }, |
| { category: 'sensor', subcategory: 'temperature' }, |
| ], |
| }, |
| // Consume the I2C Service capability from the parent |
| use: [ |
| { protocol: 'fuchsia.device.fs.Exporter' }, |
| { |
| service: [ |
| 'fuchsia.driver.compat.Service', |
| 'fuchsia.hardware.i2c.Service', |
| ], |
| }, |
| ], |
| // Provide the temperature device capability to other components |
| capabilities: [ |
| { service: 'examples.i2c.temperature.Service' }, |
| ], |
| expose: [ |
| { |
| service: 'examples.i2c.temperature.Service', |
| from: 'self', |
| }, |
| ], |
| } |