7
mirror of https://github.com/EEVengers/ThunderScope.git synced 2025-04-22 17:43:44 +00:00

Document and add enums for missing funcs

This commit is contained in:
Ratan Varghese 2021-03-21 16:26:14 -04:00
parent 25f3a6ab23
commit c0474bea57
3 changed files with 30 additions and 11 deletions
Software/waveview

View File

@ -83,20 +83,29 @@ Cmd | DataSize | Name | Description
### Electron -> C++
Cmd | DataSize | Name | Description
-----|-----------------|---------------|------------------------
0x02 | 2 (useless) | GetData2 | Reserved, If we need 1 command/ch
0x03 | 2 (useless) | GetData3 | Reserved, If we need 1 command/ch
0x04 | 2 (useless) | GetData4 | Reserved, If we need 1 command/ch
Cmd | DataSize | Name | Description
-----|-----------------|---------------------|------------------------
0x02 | 2 (useless) | GetData2 | Reserved, If we need 1 command/ch
0x03 | 2 (useless) | GetData3 | Reserved, If we need 1 command/ch
0x04 | 2 (useless) | GetData4 | Reserved, If we need 1 command/ch
0x36 | 2? | SetBandwidth |
0x37 | 2? | SetVerticalScaling |
0x38 | 2 | SetVerticalOffset | Data\[0\] has offset
0x39 | 2? | SetHorizontalOffset |
0x3A | 2 | SetCoupling | Data\[0\] has 0\1 for AC\DC
### C++ -> Electron
Cmd | DataSize | Name | Description
-----|-----------------|---------------|------------------------
0x02 | windowSize | Reserved | If we need 1 command/ch
0x03 | windowSize | Reserved | If we need 1 command/ch
0x04 | windowSize | Reserved | If we need 1 command/ch
Cmd | DataSize | Name | Description
-----|-----------------|---------------------|------------------------
0x02 | windowSize | Reserved | If we need 1 command/ch
0x03 | windowSize | Reserved | If we need 1 command/ch
0x04 | windowSize | Reserved | If we need 1 command/ch
0x36 | 0 | SetBandwidth |
0x37 | 0 | SetVerticalScaling |
0x38 | 0 | SetVerticalOffset |
0x39 | 0 | SetHorizontalOffset |
0x3A | 0 | SetCoupling |
## Proposed But Not Allocated
+ (none)

View File

@ -90,6 +90,11 @@ enum CMD {
CMD_SetLevel = 0x33,
CMD_SetTriggerCh = 0x34,
CMD_SetEdgeType = 0x35,
CMD_SetBandwidth = 0x36,
CMD_SetVerticalScaling = 0x37,
CMD_SetVerticalOffset = 0x38,
CMD_SetHorizontalOffset = 0x39,
CMD_SetCoupling = 0x3A,
CMD_SetMath = 0x3F
};

View File

@ -24,6 +24,11 @@ export enum CMD {
CMD_SetLevel = 0x33,
CMD_SetTriggerCh = 0x34,
CMD_SetEdgeType = 0x35,
CMD_SetBandwidth = 0x36,
CMD_SetVerticalScaling = 0x37,
CMD_SetVerticalOffset = 0x38,
CMD_SetHorizontalOffset = 0x39,
CMD_SetCoupling = 0x3A,
CMD_SetMath = 0x3F
}