mFrame
載入中...
搜尋中...
無符合項目
Basic

Unary plus operator overload for Control enum.

Unary plus operator overload for Control enumConverts Control enum value to its underlying unsigned short representation. This operator enables implicit conversion to numeric values for register operations and bit manipulation functions.

Control 枚舉的一元加號運算子重載,用於類型轉換

參數
eControl enum value to convert
傳回值
unsigned short The underlying numeric value of the enum

Usage:

Control reset_ctrl = Control::CTIMER0;
unsigned short value = +reset_ctrl; // Gets numeric value for register access