Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev branch physical address and group address resolution error #298

Open
iotsystem opened this issue Oct 20, 2024 · 0 comments
Open

dev branch physical address and group address resolution error #298

iotsystem opened this issue Oct 20, 2024 · 0 comments

Comments

@iotsystem
Copy link

iotsystem commented Oct 20, 2024

The correct algorithm
void print_ia(const uint16_t ia)
{
printf("IA:%d\r\n",ia);
print((ia & 0xF000) >> 12);
print(".");
print((ia & 0x0F00) >> 8);
print(".");
print(ia & 0x00FF);
}

void print_ga(const uint16_t ga)
{
    printf("GA:%d\r\n",ga);
    print(((ga>>8) & 0x78) >> 3);
    print("/");
    print(((ga>>8) & 0x07));
    print("/");
    print(ga & 0xFF);
}
@iotsystem iotsystem changed the title dev分支物理地址和组地址解析错误 dev branch physical address and group address resolution error Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant