PhyRegPktClauseMess_t Structure¶
Structure for reading PHY information from a hardware device
C/C++ Declare¶
typedef struct __declspec (align(8))
{
uint16_t Flags;
PhyRegPktClauseMess_t ClausePkt;
}PhyRegPkt_t;
typedef struct __declspec (align(8))
{
unsigned char phyAddrOrPort;
unsigned char pageOrDevice;
unsigned short regAddr;
unsigned short regVal;
}PhyRegPktClauseMess_t;
Visual Basic .NET Declare¶
<StructLayout(LayoutKind.Sequential, Pack:=8)> Public Structure PhyRegPkt_t
Dim Flags As UInt16
Dim ClausePkt As PhyRegPktClauseMess_t
End Structure
<StructLayout(LayoutKind.Sequential, Pack:=8)> Public Structure PhyRegPktClauseMess_t
Dim phyAddrOrPort As Byte
Dim pageOrDevice As Byte
Dim regAddr As UInt16
Dim regVal As UInt16
End Structure
C# .NET Declare¶
[StructLayout(LayoutKind.Sequential,Pack=8)]
public struct PhyRegPkt_t
{
public UInt16 Flags;
public PhyRegPktClauseMess_t ClausePkt;
}
[StructLayout(LayoutKind.Sequential,Pack=8)]
public struct PhyRegPktClauseMess_t
{
public byte phyAddrOrPort;
public byte pageOrDevice;
public UInt16 regAddr;
public UInt16 regVal;
}
Remarks¶
Item PhyRegPkt_t |
Description |
Flags |
Bitfield for direction and data type Bit 0: 1=Enabled, 0=Disable Bit 1: 1=Enable Write, 0=Read Bit 2: 1=Use Clause 45, 0=Use Clause 22 |
ClausePkt |
See PhyRegPktClauseMess_t structure |
Item PhyRegPktClauseMess_t |
Description |
phyAddrOrPort |
Set the Address for Clause 22 Sets the Port for Clause 45 |
pageOrDevice |
Set the Page for Clause 22 Sets the Device for Clause 45 |
regAddr |
Sets the Register Address |
regVal |
Holds the Value to Set or read back |