#if !defined(__ASPECT_H__)
#define __ASPECT_H__

/* 現示パターン2Aでの色とライト番号の対応関係 */
#define AP_2A_YELLOW_1   LIGHT_2
#define AP_2A_RED_1      LIGHT_1
/* 現示パターン2Bでの色とライト番号の対応関係 */
#define AP_2B_GREEN_1    LIGHT_2
#define AP_2B_RED_1      LIGHT_1
/* 現示パターン3Aでの色とライト番号の対応関係 */
#define AP_3A_GREEN_1    LIGHT_3
#define AP_3A_YELLOW_1   LIGHT_2
#define AP_3A_RED_1      LIGHT_1
/* 現示パターン4Aでの色とライト番号の対応関係 */
#define AP_4A_YELLOW_1   LIGHT_4
#define AP_4A_RED_1      LIGHT_3
#define AP_4A_GREEN_1    LIGHT_2
#define AP_4A_YELLOW_2   LIGHT_1
/* 現示パターン4Bでの色とライト番号の対応関係 */
#define AP_4B_YELLOW_1   LIGHT_4
#define AP_4B_RED_1      LIGHT_3
#define AP_4B_YELLOW_2   LIGHT_2
#define AP_4B_GREEN_1    LIGHT_1
/* 現示パターン4Cでの色とライト番号の対応関係 */
#define AP_4C_YELLOW_1   LIGHT_4
#define AP_4C_RED_1      LIGHT_3
#define AP_4C_YELLOW_2   LIGHT_2
#define AP_4C_GREEN_1    LIGHT_1
/* 現示パターン5Aでの色とライト番号の対応関係 */
#define AP_5A_YELLOW_1   LIGHT_5
#define AP_5A_YELLOW_2   LIGHT_4
#define AP_5A_RED_1      LIGHT_3
#define AP_5A_YELLOW_3   LIGHT_2
#define AP_5A_GREEN_1    LIGHT_1
/* 現示パターン5Bでの色とライト番号の対応関係 */
#define AP_5B_GREEN_1    LIGHT_5
#define AP_5B_GREEN_2    LIGHT_4
#define AP_5B_YELLOW_1   LIGHT_3
#define AP_5B_RED_1      LIGHT_2
#define AP_5B_GREEN_3    LIGHT_1
/* 現示パターン5Cでの色とライト番号の対応関係 */
#define AP_5C_YELLOW_1   LIGHT_5
#define AP_5C_YELLOW_2   LIGHT_4
#define AP_5C_RED_1      LIGHT_3
#define AP_5C_YELLOW_3   LIGHT_2
#define AP_5C_GREEN_1    LIGHT_1
/* 現示パターン6Aでの色とライト番号の対応関係 */
#define AP_6A_YELLOW_1   LIGHT_6
#define AP_6A_GREEN_1    LIGHT_5
#define AP_6A_RED_1      LIGHT_4
#define AP_6A_GREEN_2    LIGHT_3
#define AP_6A_YELLOW_2   LIGHT_2
#define AP_6A_GREEN_3    LIGHT_1
/* 現示パターン6Bでの色とライト番号の対応関係 */
#define AP_6B_GREEN_1    LIGHT_6
#define AP_6B_YELLOW_1   LIGHT_5
#define AP_6B_YELLOW_2   LIGHT_4
#define AP_6B_RED_1      LIGHT_3
#define AP_6B_YELLOW_3   LIGHT_2
#define AP_6B_GREEN_2    LIGHT_1

/* 現示パターンでのデータ規約 */
#define AP_INDEX_ALL_OFF  0 /* 添字0: 全消灯データ          */
#define AP_INDEX_RED      1 /* 添字1: 「停止」現示データ(赤) */

/* 現示パターン表 */
extern const uint8_t *aspect_patterns[];

/* 現示パターン数 */
#define ASPECT_N_PATTERNS  11

#endif /*__ASPECT_H__*/
