mirror of
https://github.com/espressif/openthread.git
synced 2026-08-19 00:49:53 +00:00
Add accessor methods to neighbor/child/router objects. (#1577)
This commit is contained in:
@@ -95,10 +95,10 @@ void test_packed_union()
|
||||
void test_packed_enum()
|
||||
{
|
||||
Thread::Neighbor neighbor;
|
||||
neighbor.mState = Thread::Neighbor::kStateValid;
|
||||
neighbor.SetState(Thread::Neighbor::kStateValid);
|
||||
|
||||
// Make sure that when we read the 3 bit field it is read as unsigned, so it return '4'
|
||||
VerifyOrQuit(neighbor.mState == Thread::Neighbor::kStateValid, "Toolchain::OT_TOOL_PACKED failed 4\n");
|
||||
VerifyOrQuit(neighbor.GetState() == Thread::Neighbor::kStateValid, "Toolchain::OT_TOOL_PACKED failed 4\n");
|
||||
}
|
||||
|
||||
void test_addr_sizes()
|
||||
|
||||
Reference in New Issue
Block a user