Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: PCT2075_Hello Brushless_STM3_ESC_2019_10 Alternator2020_06
I2CTempSensor Class Reference
I2CTempSensor class library クラスライブラリ More...
#include <I2CTempSensor.h>
Inherited by PCT2075 [private].
Protected Types | |
| enum | command_reg |
LM75Bのレジスタ名とアドレス More... | |
Protected Member Functions | |
| I2CTempSensor (PinName i2c_sda, PinName i2c_scl, char address) | |
| I2Cピンとスレーブアドレスを指定し,インスタンスを作成します | |
| I2CTempSensor (I2C &i2c_obj, char address) | |
| I2Cオブジェクトとスレーブアドレスを指定し,インスタンスを作成します | |
| ~I2CTempSensor () | |
| デストラクタ | |
| void | init (void) |
| 初期化 | |
| short | read16 (void) |
| 温度の読み出し | |
Detailed Description
I2CTempSensor class library クラスライブラリ
This class is an abstract class. So no instance can be made. このクラスは抽象クラスなのでインスタンスを作成することはできません クラスライブラリは非常にシンプルなインターフェースを提供します
Definition at line 31 of file I2CTempSensor.h.
Member Enumeration Documentation
enum command_reg [protected] |
LM75Bのレジスタ名とアドレス
Definition at line 40 of file I2CTempSensor.h.
Constructor & Destructor Documentation
| I2CTempSensor | ( | PinName | i2c_sda, |
| PinName | i2c_scl, | ||
| char | address | ||
| ) | [protected] |
I2Cピンとスレーブアドレスを指定し,インスタンスを作成します
- Parameters:
-
i2c_sda I2C-bus i2c_sdaピン i2c_scl I2C-bus i2c_sclピン address (オプション) I2C-bus スレーブアドレス (デフォルト: 0x90)
Definition at line 3 of file I2CTempSensor.cpp.
| I2CTempSensor | ( | I2C & | i2c_obj, |
| char | address | ||
| ) | [protected] |
I2Cオブジェクトとスレーブアドレスを指定し,インスタンスを作成します
- Parameters:
-
i2c_obj I2C オブジェクト (インスタンス) address (オプション) I2C-bus スレーブアドレス (デフォルト: 0x90)
Definition at line 9 of file I2CTempSensor.cpp.
| ~I2CTempSensor | ( | ) | [protected] |
デストラクタ
Definition at line 15 of file I2CTempSensor.cpp.
Member Function Documentation
| void init | ( | void | ) | [protected] |
初期化
Definition at line 21 of file I2CTempSensor.cpp.
| short read16 | ( | void | ) | [protected] |
Generated on Wed Jul 13 2022 08:50:39 by
1.7.2