[][src]Struct cc2650::cpu_tpiu::RegisterBlock

#[repr(C)]
pub struct RegisterBlock { pub sspsr: SSPSR, pub cspsr: CSPSR, pub acpr: ACPR, pub sppr: SPPR, pub ffsr: FFSR, pub ffcr: FFCR, pub fscr: FSCR, pub claimmask: CLAIMMASK, pub claimtag: CLAIMTAG, pub devid: DEVID, // some fields omitted }

Register block

Fields

sspsr: SSPSR

0x00 - Supported Sync Port Sizes This register represents a single port size that is supported on the device, that is, 4, 2 or 1. This is to ensure that tools do not attempt to select a port width that an attached TPA cannot capture.

cspsr: CSPSR

0x04 - Current Sync Port Size This register has the same format as SSPSR but only one bit can be set, and all others must be zero. Writing values with more than one bit set, or setting a bit that is not indicated as supported can cause Unpredictable behavior. On reset this defaults to the smallest possible port size, 1 bit.

acpr: ACPR

0x10 - Async Clock Prescaler This register scales the baud rate of the asynchronous output.

sppr: SPPR

0xf0 - Selected Pin Protocol This register selects the protocol to be used for trace output. Note: If this register is changed while trace data is being output, data corruption occurs.

ffsr: FFSR

0x300 - Formatter and Flush Status

ffcr: FFCR

0x304 - Formatter and Flush Control When one of the two single wire output (SWO) modes is selected, ENFCONT enables the formatter to be bypassed. If the formatter is bypassed, only the ITM/DWT trace source (ATDATA2) passes through. The TPIU accepts and discards data that is presented on the ETM port (ATDATA1). This function is intended to be used when it is necessary to connect a device containing an ETM to a trace capture device that is only able to capture Serial Wire Output (SWO) data. Enabling or disabling the formatter causes momentary data corruption. Note: If the selected pin protocol register (SPPR.PROTOCOL) is set to 0x00 (TracePort mode), this register always reads 0x102, because the formatter is automatically enabled. If one of the serial wire modes is then selected, the register reverts to its previously programmed value.

fscr: FSCR

0x308 - Formatter Synchronization Counter

claimmask: CLAIMMASK

0xfa0 - Claim Tag Mask

claimtag: CLAIMTAG

0xfa4 - Current Claim Tag

devid: DEVID

0xfc8 - Device ID

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]