COSA
An Object-Oriented Platform for Arduino Programming
SainSmart_LCD2004::port_t Union Reference

#include <SainSmart_LCD2004.hh>

Collaboration diagram for SainSmart_LCD2004::port_t:
Collaboration graph

Public Member Functions

 operator uint8_t ()
 
 port_t ()
 

Public Attributes

uint8_t as_uint8
 Unsigned byte access. More...
 
struct {
   uint8_t   rs:1
 Command/Data select (P0). More...
 
   uint8_t   rw:1
 Read/Write (P1). More...
 
   uint8_t   en:1
 Enable pulse (P2). More...
 
   uint8_t   bt:1
 Back-light (P3). More...
 
   uint8_t   data:4
 Data port (P4..P7). More...
 
}; 
 

Detailed Description

Expander port bit fields; little endian.

Definition at line 105 of file SainSmart_LCD2004.hh.

Constructor & Destructor Documentation

SainSmart_LCD2004::port_t::port_t ( )
inline

Definition at line 118 of file SainSmart_LCD2004.hh.

Member Function Documentation

SainSmart_LCD2004::port_t::operator uint8_t ( )
inline

Definition at line 114 of file SainSmart_LCD2004.hh.

Member Data Documentation

struct { ... }
uint8_t SainSmart_LCD2004::port_t::as_uint8

Unsigned byte access.

Definition at line 106 of file SainSmart_LCD2004.hh.

uint8_t SainSmart_LCD2004::port_t::bt

Back-light (P3).

Definition at line 111 of file SainSmart_LCD2004.hh.

uint8_t SainSmart_LCD2004::port_t::data

Data port (P4..P7).

Definition at line 112 of file SainSmart_LCD2004.hh.

uint8_t SainSmart_LCD2004::port_t::en

Enable pulse (P2).

Definition at line 110 of file SainSmart_LCD2004.hh.

uint8_t SainSmart_LCD2004::port_t::rs

Command/Data select (P0).

Definition at line 108 of file SainSmart_LCD2004.hh.

uint8_t SainSmart_LCD2004::port_t::rw

Read/Write (P1).

Definition at line 109 of file SainSmart_LCD2004.hh.


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