Data Fields
hyplnkControlReg_s Struct Reference

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

Detailed Description

Specification of the HyperLink Control Register.

The Control Register determines operation of the HyperLink module.


Field Documentation

[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.

[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.

[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.

[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.

[rw] Stops/kills all pending transactions then stops serial tx/rx.

Field size: 1 bit

When set will disable all partial or remote register operation, and error them with an bad_address status. This bit should be set before iLoop or reset bits are changed.

[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

[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.


The documentation for this struct was generated from the following file:

Copyright 2014, Texas Instruments Incorporated