c++/rgb-assembler/types.h
author František Kučera <franta-hg@frantovo.cz>
Sun, 24 Dec 2017 00:30:54 +0100
changeset 29 10d6964e7b4a
parent 28 2b2f8a17d63a
child 38 b5e31973fe20
permissions -rw-r--r--
license: GNU GPLv3+
franta-hg@29
     1
/**
franta-hg@29
     2
 * RGB assembler
franta-hg@29
     3
 * Copyright © 2017 František Kučera (frantovo.cz)
franta-hg@29
     4
 *
franta-hg@29
     5
 * This program is free software: you can redistribute it and/or modify
franta-hg@29
     6
 * it under the terms of the GNU General Public License as published by
franta-hg@29
     7
 * the Free Software Foundation, either version 3 of the License, or
franta-hg@29
     8
 * (at your option) any later version.
franta-hg@29
     9
 *
franta-hg@29
    10
 * This program is distributed in the hope that it will be useful,
franta-hg@29
    11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
franta-hg@29
    12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
franta-hg@29
    13
 * GNU General Public License for more details.
franta-hg@29
    14
 *
franta-hg@29
    15
 * You should have received a copy of the GNU General Public License
franta-hg@29
    16
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
franta-hg@29
    17
 */
franta-hg@29
    18
franta-hg@19
    19
#pragma once
franta-hg@19
    20
franta-hg@19
    21
#include <cstdint>
franta-hg@19
    22
franta-hg@19
    23
typedef uint16_t address_t;
franta-hg@19
    24
typedef uint8_t octet_t;
franta-hg@19
    25
typedef uint8_t command_t;
franta-hg@19
    26
typedef uint8_t sleep_t;
franta-hg@19
    27
typedef uint8_t color_t;
franta-hg@19
    28
typedef uint8_t led_t;
franta-hg@28
    29
franta-hg@28
    30
// TODO: strong typedefs http://www.boost.org/doc/libs/1_61_0/libs/serialization/doc/strong_typedef.html ?