dcsbios
Classes:
| Name | Description |
|---|---|
IntegerBuffer |
Integer buffer for DCS-BIOS protocol. |
ParserState |
Protocol parser states. |
ProtocolParser |
DCS_BIOS protocol parser. |
StringBuffer |
String buffer for DCS-BIOS protocol. |
IntegerBuffer
IntegerBuffer(
parser: ProtocolParser,
address: int,
mask: int,
shift_by: int,
callback: Callable,
)
Integer buffer for DCS-BIOS protocol.
Initialize instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
ProtocolParser
|
|
required |
|
int
|
|
required |
|
int
|
|
required |
|
int
|
|
required |
|
Callable
|
|
required |
Methods:
| Name | Description |
|---|---|
on_dcsbios_write |
Set a callback function. |
Source code in src/dcspy/dcsbios.py
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | |
on_dcsbios_write
Set a callback function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
int
|
|
required |
|
int
|
|
required |
Source code in src/dcspy/dcsbios.py
196 197 198 199 200 201 202 203 204 205 206 207 208 | |
ParserState
ProtocolParser
ProtocolParser()
DCS_BIOS protocol parser.
Initialize instance.
Methods:
| Name | Description |
|---|---|
process_byte |
State machine - processing of byte. |
Source code in src/dcspy/dcsbios.py
22 23 24 25 26 27 28 29 30 | |
process_byte
State machine - processing of byte.
Allowed states are: ParserState
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
int
|
|
required |
Source code in src/dcspy/dcsbios.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | |
StringBuffer
StringBuffer(
parser: ProtocolParser,
address: int,
max_length: int,
callback: Callable,
)
String buffer for DCS-BIOS protocol.
Initialize instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
ProtocolParser
|
|
required |
|
int
|
|
required |
|
int
|
|
required |
|
Callable
|
|
required |
Methods:
| Name | Description |
|---|---|
on_dcsbios_write |
Set a callback function. |
set_char |
Set char. |
Source code in src/dcspy/dcsbios.py
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | |
on_dcsbios_write
Set a callback function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
int
|
|
required |
|
int
|
|
required |
Source code in src/dcspy/dcsbios.py
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 | |
set_char
Set char.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
int
|
|
required |
|
int
|
|
required |
Source code in src/dcspy/dcsbios.py
145 146 147 148 149 150 151 152 153 154 | |