Embedded Template Library 1.0
Loading...
Searching...
No Matches
etl::io_port_wos< T, 0 > Class Template Reference

#include <io_port.h>

Public Types

typedef T value_type
 
typedef volatile Tpointer
 
typedef volatile const Tconst_pointer
 
typedef volatile Treference
 
typedef volatile const Tconst_reference
 
typedef etl::private_io_port::iterator< io_port_wos< T, 0 > > iterator
 
typedef etl::private_io_port::const_iterator< io_port_wos< T, 0 > > const_iterator
 

Public Member Functions

 ETL_STATIC_ASSERT (etl::is_integral< T >::value, "Not an integral type")
 
 io_port_wos ()
 Default constructor.
 
 io_port_wos (void *address_)
 Constructor.
 
 io_port_wos (const io_port_wos &other_)
 Copy Constructor.
 
io_port_wosoperator= (const io_port_wos &other_)
 Assignment.
 
iterator iter ()
 Get an iterator to this port.
 
const_iterator iter () const
 Get a const_iterator to this port.
 
const_iterator citer () const
 Get a const_iterator to this port.
 
io_port_wosoperator|= (value_type value)
 Or-Equals operator.
 
io_port_wosoperator&= (value_type value)
 And-Equals operator.
 
io_port_wosoperator^= (value_type value)
 Exclusive-Or-Equals operator.
 
io_port_wosoperator<<= (int shift)
 Left-Shift-Equals operator.
 
io_port_wosoperator>>= (int shift)
 Right-Shift-Equals operator.
 
value_type operator~ () const
 Not operator.
 
void set_address (void *address_)
 Set the IO port address.
 
pointer get_address ()
 Get the IO port address.
 
const_pointer get_address () const
 Get the IO port address.
 
 operator value_type () const
 Read.
 
value_type read () const
 Read.
 
void write (value_type value_)
 Write.
 
io_port_wosoperator= (value_type value_)
 Write.
 
io_port_wosoperator* ()
 Read / Write.
 
const_reference operator* () const
 Read.
 

Detailed Description

template<typename T>
class etl::io_port_wos< T, 0 >

Write only port with shadow register. Specialisation for dynamic addresses.


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