24 template <
typename Message>
47 bus.requestFrom(address,
Size);
48 while (bus.available())
50 for (
auto&& it : buffer)
#define F(x)
Definition Show.hpp:17
void update()
更新
Definition I2cMasterReader.hpp:45
Message MessageType
受信メッセージ型
Definition I2cMasterReader.hpp:29
Udon::Optional< Message > getMessage() const
受信したメッセージを取得
Definition I2cMasterReader.hpp:59
static constexpr size_t Size
受信バッファサイズ
Definition I2cMasterReader.hpp:32
void showRaw() const
受信バッファを表示
Definition I2cMasterReader.hpp:85
I2cMasterReader(Udon::II2cBus &bus, uint8_t address)
コンストラクタ
Definition I2cMasterReader.hpp:37
void show() const
受信内容を表示
Definition I2cMasterReader.hpp:72
I2cBus クラスのインターフェース
Definition I2cBus.hpp:21
オプショナル型
Definition Optional.hpp:62
Definition AirCylinder.hpp:16
Udon::Optional< T > Deserialize(ArrayView< const uint8_t > buffer)
バイト列からオブジェクトに逆シリアル化します
Definition Serializer.hpp:87
void Show(Args &&... args)
区切り文字ありで出力する
Definition Show.hpp:339
constexpr size_t SerializedSize() noexcept
Tをシリアライズした際のバイト列の要素数を取得する
Definition Serializer.hpp:22
constexpr NulloptT nullopt
無効値
Definition Optional.hpp:52