Skip to content

UDPRecv #1

Description

@pekspro

In UDPRecv there is this line:

if((IINCHIP_READ(Sn_MR(s))&0x0F) != Sn_MR_UDP) return SOCKERR_NOT_UDP;

Later in the same function there is:

switch (IINCHIP_READ(Sn_MR(s)) & 0x07)

What's the point of this switch statement, doesn't SnMR has to be Sn_MR_UDP? And why is mask 0x07 used in the switch statement and mask 0x0f in the if-statement?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions