FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
C++
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
May 01, 2005

Register Access in C++

(Page 9 of 15)

May, 2005: Register Access in C++

Listing 5

struct uart_device_t
{
    uint8_t STATUS;
    uint8_t TXCTL;
    ... and so on ...
};
static volatile uart_device_t * const uart_device
   = reinterpret_cast<volatile uart_device_t *>(0xfffe0000);
uart_device->TXBUF = 10;
uart_device->TXCTL = 3;

Previous Page | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 Next Page
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK