For the complete documentation index, see llms.txt. This page is also available as Markdown.

PhyRegPktClauseMess_t Structure

Structure for reading PHY information from a hardware device

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;
<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

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

Last updated