mFrame
載入中...
搜尋中...
無符合項目
Status.h
1
7#ifndef CHIP_CABCF151_0310_4C3E_978E_0AAE6A949190
8#define CHIP_CABCF151_0310_4C3E_978E_0AAE6A949190
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15#include "mframe.h"
16
17//----------------------------------------------------------------------------------------
18#include "./StatusGroup.h"
19
20/* ***************************************************************************************
21 * Namespace
22 */
23namespace chip {
24 enum struct Status : unsigned int;
25
26 constexpr unsigned int operator+(Status e) {
27 return static_cast<unsigned int>(e);
28 }
29} // namespace chip
30
31/* ***************************************************************************************
32 * Class/Interface/Struct/Enum
33 */
34enum struct chip::Status : unsigned int {
35 SUCCESS = chip::MAKE_STATUS(chip::StatusGroup::GENERIC, 0),
36 FAIL = chip::MAKE_STATUS(chip::StatusGroup::GENERIC, 1),
37 READONLY = chip::MAKE_STATUS(chip::StatusGroup::GENERIC, 2),
38 OUT_OF_RANGE = chip::MAKE_STATUS(chip::StatusGroup::GENERIC, 3),
39 INVALID_ARGUMENT = chip::MAKE_STATUS(chip::StatusGroup::GENERIC, 4),
40 TIMEOUT = chip::MAKE_STATUS(chip::StatusGroup::GENERIC, 5),
41 NO_TRANSFER_IN_PROGRESS = chip::MAKE_STATUS(chip::StatusGroup::GENERIC, 6),
42 BUSY = chip::MAKE_STATUS(chip::StatusGroup::GENERIC, 7),
43 NO_DATA = chip::MAKE_STATUS(chip::StatusGroup::GENERIC, 8)
44};
45
46/* ***************************************************************************************
47 * End of file
48 */
49
50#endif /* CHIP_CABCF151_0310_4C3E_978E_0AAE6A949190 */
Definition AttachID.h:23
Status
Definition Status.h:34