![]() |
![]() |
Specification of the HyperLink Control Register. More...
#include <hyplnk.h>
Data Fields | |
uint32_t | raw |
[ro] Raw image of register on read; actual value on write | |
uint8_t | intLocal |
[rw] Interrupt Local: set to 1 to keep interrupts local | |
uint8_t | statusIntEnable |
[rw] Module Status (Error) Interrupt Enable. | |
uint8_t | statusIntVec |
[rw] Vector (number) used by the Module Status (Error) Interrupt | |
uint8_t | int2cfg |
[rw] Selects whether to use hyplnkIntStatusClrReg_s. | |
uint8_t | serialStop |
[rw] Stops/kills all pending transactions then stops serial tx/rx. | |
uint8_t | iLoop |
[rw] Internal (serial level) loopback enable | |
uint8_t | reset |
[rw] Resets the peripheral |
Specification of the HyperLink Control Register.
The Control Register determines operation of the HyperLink module.
uint8_t hyplnkControlReg_s::iLoop |
[rw] Internal (serial level) loopback enable
Field size: 1 bit
This bit when set causes the serial transmit data to be wrapped back to the serial receive data. When changing this bit, it is recommended that the serial_stop bit be set and that all outstanding transactions have completed before the iloop bit is changes at which time the serialStop bit can be cleared to resume normal operation.
uint8_t hyplnkControlReg_s::int2cfg |
[rw] Selects whether to use hyplnkIntStatusClrReg_s.
Field size: 1 bit
When this bit is set, hyplnkIntStatusClrReg_s is written directly with the status contained in interrupt packets. When this bit is set, the least significant 8 bits of the Interrupt Pointer Register are used to point to a local configuration register (typically the Interrupt Pending/Set Register). When clear, bits [31-2] of the Interrupt Pointer Register are used by the VBUSM Master interface as the address of interrupt set register.
uint8_t hyplnkControlReg_s::intLocal |
[rw] Interrupt Local: set to 1 to keep interrupts local
Field size: 1 bit
This bit determines whether interrupts are posted in the Interrupt Status/Clear Register or forwarded via the serial interface. When set, interrupts are posted in hyplnkIntStatusClrReg_s. When clear, interrupts are forwarded out the serial interface to the remote device.
uint8_t hyplnkControlReg_s::reset |
[rw] Resets the peripheral
Field size: 1 bit
When this bit is set, all internal state machines are reset, the serial interface is disabled, and link is lost.
Note: Any bus transaction in flight between the devices will be lost. When changing this bit, it is recommended that the serialStop bit be set and that all outstanding transactions have completed hyplnkStatusReg_t::rPend before the reset bit is set. After the reset bit is cleared the serialStop bit can be cleared to resume normal operation.
uint8_t hyplnkControlReg_s::serialStop |
[rw] Module Status (Error) Interrupt Enable.
Field size: 1 bit
This bit causes HyperLink module status interrupts to be posted to hyplnkIntPendSetReg_s.
When this bit is enabled and one of the hyplnkStatusReg_t::rError and hyplnkStatusReg_t::lError fields become set, then this bit decides whether an interrupt is generated
uint8_t hyplnkControlReg_s::statusIntVec |
[rw] Vector (number) used by the Module Status (Error) Interrupt
Field size: 5 bits
When a Module Status interrupt allowed by intLocal occurs, specifies which interrupt number in the Interrupt Pending/Set Register will be triggered.