1
0
mirror of https://github.com/sendyne/cppreg.git synced 2025-05-09 15:14:05 +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:
Nicolas Clauvelin 2024-02-21 20:56:54 -05:00
parent 42bd134067
commit 8cb2714b4b
No known key found for this signature in database

6
API.md
View File

@ -155,13 +155,13 @@ struct Peripheral {
using Data = Field<Channel0, 8u, 0u, read_write>;
};
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> {
using Data = Field<Channel0, 8u, 0u, read_write>;
using Data = Field<Channel2, 8u, 0u, read_write>;
};
struct Channel3 : PackedRegister<Pack, RegBistSize::b8, 8 * 3> {
using Data = Field<Channel0, 8u, 0u, read_write>;
using Data = Field<Channel3, 8u, 0u, read_write>;
};
}