12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #pragma once
- #ifndef EVENT_LIST_H
- #define EVENT_LIST_H
- /* Event codes */
- typedef enum {
- eventNull = 0x00,
- evNewSecond,
- evBTN1Pressed,
- evBTN2Pressed,
- evBTN3Pressed,
- evBTN4Pressed,
- evBTN1Holded,
- evBTN2Holded,
- evBTN3Holded,
- evBTN4Holded,
- evRefreshCal,
- evDisplayWDT
- } es_event_t;
- /* State codes */
- typedef enum {
- stNoChange = 0x00,
- stShowTime,
- stShowWDay,
- stShowMDay,
- stShowMon,
- stShowDM,
- stShowYear,
- stShowHumidity,
- stShowTemperature,
- stShowPressure,
- stShowSensorData,
- stShowBright,
- stSetHH,
- stSetMM,
- stSetWDay,
- stSetMDay,
- stSetMon,
- stSetYear,
- /* end */
- stLastState
- } es_state_t;
- #ifndef NULL
- #define NULL ((void*)0)
- #endif
- #endif
|