Hi, I am looking through the data sheets, application hints, and software user manual for the SJA1105Q automotive ethernet IC. Looking through the example python scripts for the SJA1105Q development board AH1707, I am confused by the write_vlan_lookup_table.py file. I am confused by the hex values used for VMEMB_PORT and all of the following hex values for the configuration variables. Why are the member ports set to 0x07? My understanding has been to convert it to binary (0b00111) which corresponds to ports 0, 1, and 2 (or 3 and 4) being set as the member ports for this VLAN. The comment next to this line of code states ##Member ports (_ _ _ P4 P3 P2 P1 P0) which I don't understand either.
The intended use case for me is to have 3 VLANs where
P0 <--> P1 VLAN 0
P0 <--> P2 VLAN 1
P0 <--> P3 VLAN 2
Any help would be greatly appreciated!