Skip to content

Commit 67148ce

Browse files
committed
[ot] hw/opentitan: ot_common: define type aliases for OpenTitan multibit booleans
Signed-off-by: Emmanuel Blot <[email protected]>
1 parent 6c12122 commit 67148ce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/hw/opentitan/ot_common.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@
7171
#define OT_MULTIBITBOOL_LC4_TRUE 0xau
7272
#define OT_MULTIBITBOOL_LC4_FALSE 0x5u
7373

74+
typedef uint8_t ot_mb4_t;
75+
typedef uint8_t ot_mb8_t;
76+
typedef uint16_t ot_mb12_t;
77+
typedef uint16_t ot_mb16_t;
78+
typedef uint8_t ot_mb_lc4_t;
79+
7480
/*
7581
* Performs a logical OR operation between two multibit values.
7682
* This treats "act" as logical 1, and all other values are treated as 0.

0 commit comments

Comments
 (0)