mFrame
載入中...
搜尋中...
無符合項目
Status.h
1
7
#ifndef MCXA153_CABCF151_0310_4C3E_978E_0AAE6A949190
8
#define MCXA153_CABCF151_0310_4C3E_978E_0AAE6A949190
9
10
/* ***************************************************************************************
11
* Include
12
*/
13
#include "mframe.h"
14
15
//----------------------------------------------------------------------------------------
16
#include "./../chip/StatusGroup.h"
17
18
//----------------------------------------------------------------------------------------
19
20
/* ***************************************************************************************
21
* Namespace
22
*/
23
namespace
mcxa153::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 mcxa153::chip
30
31
/* ***************************************************************************************
32
* Class/Interface/Struct/Enum
33
*/
221
enum struct
mcxa153::chip::Status
:
unsigned
int
{
235
SUCCESS =
mcxa153::chip::MAKE_STATUS
(
mcxa153::chip::StatusGroup::GENERIC
, 0),
236
255
FAIL =
mcxa153::chip::MAKE_STATUS
(
mcxa153::chip::StatusGroup::GENERIC
, 1),
256
276
READONLY =
mcxa153::chip::MAKE_STATUS
(
mcxa153::chip::StatusGroup::GENERIC
, 2),
277
297
OUT_OF_RANGE =
mcxa153::chip::MAKE_STATUS
(
mcxa153::chip::StatusGroup::GENERIC
, 3),
298
318
INVALID_ARGUMENT =
mcxa153::chip::MAKE_STATUS
(
mcxa153::chip::StatusGroup::GENERIC
, 4),
319
339
TIMEOUT =
mcxa153::chip::MAKE_STATUS
(
mcxa153::chip::StatusGroup::GENERIC
, 5),
340
360
NO_TRANSFER_IN_PROGRESS =
361
mcxa153::chip::MAKE_STATUS
(
mcxa153::chip::StatusGroup::GENERIC
, 6),
362
382
BUSY =
mcxa153::chip::MAKE_STATUS
(
mcxa153::chip::StatusGroup::GENERIC
, 7),
383
403
NO_DATA =
mcxa153::chip::MAKE_STATUS
(
mcxa153::chip::StatusGroup::GENERIC
, 8)
404
};
405
406
/* ***************************************************************************************
407
* End of file
408
*/
409
410
#endif
/* MCXA153_CABCF151_0310_4C3E_978E_0AAE6A949190 */
mcxa153::chip::clock::operator+
constexpr unsigned int operator+(AttachID e)
將AttachID轉換為無符號整數
Definition
AttachID.h:42
mcxa153::chip
Definition
AttachID.h:33
mcxa153::chip::MAKE_STATUS
constexpr uint32 MAKE_STATUS(StatusGroup group, uint32 code)
狀態碼生成巨集 (Status Code Generation Macro)
Definition
StatusGroup.h:56
mcxa153::chip::Status
Status
Definition
Status.h:221
mcxa153::chip::StatusGroup::GENERIC
@ GENERIC
通用狀態群組 - 適用於所有模組的基本狀態碼 (0-99)
src
mcxa153
src
mcxa153
chip
Status.h
產生者:
1.11.0