24 template <
typename Message>
50 for (
auto&& it : buffer)
73 void show(
char gap =
'\t')
const
#define F(x)
Definition Show.hpp:17
I2c マスター側受信クラス
Definition I2cMasterReader.hpp:26
void showRaw(char gap=' ') const
受信バッファを表示
Definition I2cMasterReader.hpp:87
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
I2cMasterReader(Udon::II2cBus &bus, uint8_t address)
コンストラクタ
Definition I2cMasterReader.hpp:37
void show(char gap='\t') const
受信内容を表示
Definition I2cMasterReader.hpp:73
I2cBus クラスのインターフェース
Definition I2cBus.hpp:21
virtual int available()=0
virtual uint8_t requestFrom(uint8_t address, uint8_t quantity)=0
オプショナル型
Definition Optional.hpp:62
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