Chris BAYLEY / Mbed 2 deprecated UARTSnoop

Dependencies:   MODSERIAL Terminal mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers stripe.h Source File

stripe.h

00001 #include <stdint.h>
00002 #ifndef STRIPE_H
00003 #define STRIPE_H
00004 
00005 struct Row {
00006     char fgc[sizeof("\033[48;5;249m")-1];
00007     char hex[16*3];
00008     char sp[4];
00009     char asc[16];
00010     char eol[2];
00011 };
00012     
00013 struct Strip {
00014     char bgc[sizeof("\033[48;5;249m")-1];
00015     struct Row row[2];
00016 };
00017 
00018 class Stripe {
00019 private:
00020     //uint8_t     bg_color;
00021     //uint8_t     out_color;
00022     //uint8_t     in_color;
00023     uint8_t     wp;
00024     uint8_t     rp;
00025     //uint8_t     wp;
00026 public:
00027     struct  Strip  strip;
00028     
00029 public:
00030     /* contructor 
00031         xterm256 color for background, output, input*/
00032     Stripe( uint8_t bc, uint8_t oc, uint8_t ic  );
00033     
00034     int inbyte( uint8_t );
00035     int outbyte( uint8_t );
00036     int advance( void );
00037     uint8_t getc(void);
00038     
00039     
00040     
00041 };
00042 
00043 #endif