Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
map_to_7segment.h File Reference
#include <linux/errno.h>

Go to the source code of this file.

Data Structures

struct  seg7_conversion_map
 

Macros

#define BIT_SEG7_A   0
 
#define BIT_SEG7_B   1
 
#define BIT_SEG7_C   2
 
#define BIT_SEG7_D   3
 
#define BIT_SEG7_E   4
 
#define BIT_SEG7_F   5
 
#define BIT_SEG7_G   6
 
#define BIT_SEG7_RESERVED   7
 
#define SEG7_CONVERSION_MAP(_name, _map)   struct seg7_conversion_map _name = { .table = { _map } }
 
#define MAP_TO_SEG7_SYSFS_FILE   "map_seg7"
 
#define _SEG7(l, a, b, c, d, e, f, g)
 
#define _MAP_0_32_ASCII_SEG7_NON_PRINTABLE   0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
 
#define _MAP_33_47_ASCII_SEG7_SYMBOL
 
#define _MAP_48_57_ASCII_SEG7_NUMERIC
 
#define _MAP_58_64_ASCII_SEG7_SYMBOL
 
#define _MAP_65_90_ASCII_SEG7_ALPHA_UPPR
 
#define _MAP_91_96_ASCII_SEG7_SYMBOL
 
#define _MAP_97_122_ASCII_SEG7_ALPHA_LOWER
 
#define _MAP_123_126_ASCII_SEG7_SYMBOL
 
#define MAP_ASCII7SEG_ALPHANUM
 
#define MAP_ASCII7SEG_ALPHANUM_LC
 
#define SEG7_DEFAULT_MAP(_name)   SEG7_CONVERSION_MAP(_name,MAP_ASCII7SEG_ALPHANUM)
 

Macro Definition Documentation

#define _MAP_0_32_ASCII_SEG7_NON_PRINTABLE   0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,

Definition at line 101 of file map_to_7segment.h.

#define _MAP_123_126_ASCII_SEG7_SYMBOL
Value:
_SEG7('{',1,0,0,1,1,1,0), _SEG7('|',0,0,0,0,1,1,0), _SEG7('}',1,1,1,1,0,0,0),\
_SEG7('~',1,0,0,0,0,0,0),

Definition at line 148 of file map_to_7segment.h.

#define _MAP_33_47_ASCII_SEG7_SYMBOL
Value:
_SEG7('!',0,0,0,0,1,1,0), _SEG7('"',0,1,0,0,0,1,0), _SEG7('#',0,1,1,0,1,1,0),\
_SEG7('$',1,0,1,1,0,1,1), _SEG7('%',0,0,1,0,0,1,0), _SEG7('&',1,0,1,1,1,1,1),\
_SEG7('\'',0,0,0,0,0,1,0),_SEG7('(',1,0,0,1,1,1,0), _SEG7(')',1,1,1,1,0,0,0),\
_SEG7('*',0,1,1,0,1,1,1), _SEG7('+',0,1,1,0,0,0,1), _SEG7(',',0,0,0,0,1,0,0),\
_SEG7('-',0,0,0,0,0,0,1), _SEG7('.',0,0,0,0,1,0,0), _SEG7('/',0,1,0,0,1,0,1),

Definition at line 104 of file map_to_7segment.h.

#define _MAP_48_57_ASCII_SEG7_NUMERIC
Value:
_SEG7('0',1,1,1,1,1,1,0), _SEG7('1',0,1,1,0,0,0,0), _SEG7('2',1,1,0,1,1,0,1),\
_SEG7('3',1,1,1,1,0,0,1), _SEG7('4',0,1,1,0,0,1,1), _SEG7('5',1,0,1,1,0,1,1),\
_SEG7('6',1,0,1,1,1,1,1), _SEG7('7',1,1,1,0,0,0,0), _SEG7('8',1,1,1,1,1,1,1),\
_SEG7('9',1,1,1,1,0,1,1),

Definition at line 111 of file map_to_7segment.h.

#define _MAP_58_64_ASCII_SEG7_SYMBOL
Value:
_SEG7(':',0,0,0,1,0,0,1), _SEG7(';',0,0,0,1,0,0,1), _SEG7('<',1,0,0,0,0,1,1),\
_SEG7('=',0,0,0,1,0,0,1), _SEG7('>',1,1,0,0,0,0,1), _SEG7('?',1,1,1,0,0,1,0),\
_SEG7('@',1,1,0,1,1,1,1),

Definition at line 117 of file map_to_7segment.h.

#define _MAP_65_90_ASCII_SEG7_ALPHA_UPPR
Value:
_SEG7('A',1,1,1,0,1,1,1), _SEG7('B',1,1,1,1,1,1,1), _SEG7('C',1,0,0,1,1,1,0),\
_SEG7('D',1,1,1,1,1,1,0), _SEG7('E',1,0,0,1,1,1,1), _SEG7('F',1,0,0,0,1,1,1),\
_SEG7('G',1,1,1,1,0,1,1), _SEG7('H',0,1,1,0,1,1,1), _SEG7('I',0,1,1,0,0,0,0),\
_SEG7('J',0,1,1,1,0,0,0), _SEG7('K',0,1,1,0,1,1,1), _SEG7('L',0,0,0,1,1,1,0),\
_SEG7('M',1,1,1,0,1,1,0), _SEG7('N',1,1,1,0,1,1,0), _SEG7('O',1,1,1,1,1,1,0),\
_SEG7('P',1,1,0,0,1,1,1), _SEG7('Q',1,1,1,1,1,1,0), _SEG7('R',1,1,1,0,1,1,1),\
_SEG7('S',1,0,1,1,0,1,1), _SEG7('T',0,0,0,1,1,1,1), _SEG7('U',0,1,1,1,1,1,0),\
_SEG7('V',0,1,1,1,1,1,0), _SEG7('W',0,1,1,1,1,1,1), _SEG7('X',0,1,1,0,1,1,1),\
_SEG7('Y',0,1,1,0,0,1,1), _SEG7('Z',1,1,0,1,1,0,1),

Definition at line 122 of file map_to_7segment.h.

#define _MAP_91_96_ASCII_SEG7_SYMBOL
Value:
_SEG7('[',1,0,0,1,1,1,0), _SEG7('\\',0,0,1,0,0,1,1),_SEG7(']',1,1,1,1,0,0,0),\
_SEG7('^',1,1,0,0,0,1,0), _SEG7('_',0,0,0,1,0,0,0), _SEG7('`',0,1,0,0,0,0,0),

Definition at line 133 of file map_to_7segment.h.

#define _MAP_97_122_ASCII_SEG7_ALPHA_LOWER
Value:
_SEG7('A',1,1,1,0,1,1,1), _SEG7('b',0,0,1,1,1,1,1), _SEG7('c',0,0,0,1,1,0,1),\
_SEG7('d',0,1,1,1,1,0,1), _SEG7('E',1,0,0,1,1,1,1), _SEG7('F',1,0,0,0,1,1,1),\
_SEG7('G',1,1,1,1,0,1,1), _SEG7('h',0,0,1,0,1,1,1), _SEG7('i',0,0,1,0,0,0,0),\
_SEG7('j',0,0,1,1,0,0,0), _SEG7('k',0,0,1,0,1,1,1), _SEG7('L',0,0,0,1,1,1,0),\
_SEG7('M',1,1,1,0,1,1,0), _SEG7('n',0,0,1,0,1,0,1), _SEG7('o',0,0,1,1,1,0,1),\
_SEG7('P',1,1,0,0,1,1,1), _SEG7('q',1,1,1,0,0,1,1), _SEG7('r',0,0,0,0,1,0,1),\
_SEG7('S',1,0,1,1,0,1,1), _SEG7('T',0,0,0,1,1,1,1), _SEG7('u',0,0,1,1,1,0,0),\
_SEG7('v',0,0,1,1,1,0,0), _SEG7('W',0,1,1,1,1,1,1), _SEG7('X',0,1,1,0,1,1,1),\
_SEG7('y',0,1,1,1,0,1,1), _SEG7('Z',1,1,0,1,1,0,1),

Definition at line 137 of file map_to_7segment.h.

#define _SEG7 (   l,
  a,
  b,
  c,
  d,
  e,
  f,
  g 
)
Value:

Definition at line 97 of file map_to_7segment.h.

#define BIT_SEG7_A   0

Definition at line 65 of file map_to_7segment.h.

#define BIT_SEG7_B   1

Definition at line 66 of file map_to_7segment.h.

#define BIT_SEG7_C   2

Definition at line 67 of file map_to_7segment.h.

#define BIT_SEG7_D   3

Definition at line 68 of file map_to_7segment.h.

#define BIT_SEG7_E   4

Definition at line 69 of file map_to_7segment.h.

#define BIT_SEG7_F   5

Definition at line 70 of file map_to_7segment.h.

#define BIT_SEG7_G   6

Definition at line 71 of file map_to_7segment.h.

#define BIT_SEG7_RESERVED   7

Definition at line 72 of file map_to_7segment.h.

#define MAP_ASCII7SEG_ALPHANUM
Value:
_MAP_0_32_ASCII_SEG7_NON_PRINTABLE \
_MAP_33_47_ASCII_SEG7_SYMBOL \
_MAP_48_57_ASCII_SEG7_NUMERIC \
_MAP_58_64_ASCII_SEG7_SYMBOL \
_MAP_65_90_ASCII_SEG7_ALPHA_UPPR \
_MAP_91_96_ASCII_SEG7_SYMBOL \
_MAP_97_122_ASCII_SEG7_ALPHA_LOWER \
_MAP_123_126_ASCII_SEG7_SYMBOL

Definition at line 158 of file map_to_7segment.h.

#define MAP_ASCII7SEG_ALPHANUM_LC
Value:
_MAP_0_32_ASCII_SEG7_NON_PRINTABLE \
_MAP_33_47_ASCII_SEG7_SYMBOL \
_MAP_48_57_ASCII_SEG7_NUMERIC \
_MAP_58_64_ASCII_SEG7_SYMBOL \
_MAP_97_122_ASCII_SEG7_ALPHA_LOWER \
_MAP_91_96_ASCII_SEG7_SYMBOL \
_MAP_97_122_ASCII_SEG7_ALPHA_LOWER \
_MAP_123_126_ASCII_SEG7_SYMBOL

Definition at line 173 of file map_to_7segment.h.

#define MAP_TO_SEG7_SYSFS_FILE   "map_seg7"

Definition at line 91 of file map_to_7segment.h.

#define SEG7_CONVERSION_MAP (   _name,
  _map 
)    struct seg7_conversion_map _name = { .table = { _map } }

Definition at line 83 of file map_to_7segment.h.

#define SEG7_DEFAULT_MAP (   _name)    SEG7_CONVERSION_MAP(_name,MAP_ASCII7SEG_ALPHANUM)

Definition at line 183 of file map_to_7segment.h.