mirror of
https://github.com/sendyne/cppreg.git
synced 2026-01-19 04:52:08 +00:00
Fix typo in API documentation
This commit fixes the register type used in the "Register pack goodies" example. Closes #16
This commit is contained in:
6
API.md
6
API.md
@@ -155,13 +155,13 @@ struct Peripheral {
|
|||||||
using Data = Field<Channel0, 8u, 0u, read_write>;
|
using Data = Field<Channel0, 8u, 0u, read_write>;
|
||||||
};
|
};
|
||||||
struct Channel1 : PackedRegister<Pack, RegBistSize::b8, 8 * 1> {
|
struct Channel1 : PackedRegister<Pack, RegBistSize::b8, 8 * 1> {
|
||||||
using Data = Field<Channel0, 8u, 0u, read_write>;
|
using Data = Field<Channel1, 8u, 0u, read_write>;
|
||||||
};
|
};
|
||||||
struct Channel2 : PackedRegister<Pack, RegBistSize::b8, 8 * 2> {
|
struct Channel2 : PackedRegister<Pack, RegBistSize::b8, 8 * 2> {
|
||||||
using Data = Field<Channel0, 8u, 0u, read_write>;
|
using Data = Field<Channel2, 8u, 0u, read_write>;
|
||||||
};
|
};
|
||||||
struct Channel3 : PackedRegister<Pack, RegBistSize::b8, 8 * 3> {
|
struct Channel3 : PackedRegister<Pack, RegBistSize::b8, 8 * 3> {
|
||||||
using Data = Field<Channel0, 8u, 0u, read_write>;
|
using Data = Field<Channel3, 8u, 0u, read_write>;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user