microprobe.code.var.VariableSingle
- class VariableSingle(name: str, vartype: str, align: int = 1, value=None, address: Address | None = None)[source]
Bases:
Variable
- __init__(name: str, vartype: str, align: int = 1, value=None, address: Address | None = None)[source]
- Parameters:
name
vartype
align – (Default value = 16)
value – (Default value = None)
Methods
__init__
(name, vartype[, align, value, address])- param name:
array
()Return if the variable is an array.
set_address
(address)Set variable address.
Attributes
Variable address (
Address
).Variable alignment (
int
).Variable name (
str
).Variable size in bytes (:
int
).Variable type (
str
).Variable value.
- property value
Variable value.