initial deployment v1.0
This commit is contained in:
41
BINARY_LAYOUT.md
Normal file
41
BINARY_LAYOUT.md
Normal file
@@ -0,0 +1,41 @@
|
||||
# PRS Binary Layout
|
||||
|
||||
## File Structure
|
||||
|
||||
| Offset | Size | Description |
|
||||
|-------|------|------------|
|
||||
| 0x0000 | 4 | Reserved (always 0x00000000) |
|
||||
| 0x0004 | 0x218 | Personality Struct |
|
||||
|
||||
---
|
||||
|
||||
## Personality Struct
|
||||
|
||||
| Offset | Size | Description |
|
||||
|-------|------|------------|
|
||||
| 0x0D | 1 | Channel Count |
|
||||
| 0x0E | 12 | Fixture Name (null-terminated) |
|
||||
| 0x1C | ... | Channel Blocks |
|
||||
|
||||
---
|
||||
|
||||
## Channel Block (8 bytes)
|
||||
|
||||
| Offset | Size | Description |
|
||||
|-------|------|------------|
|
||||
| +0x00 | 1 | Flags |
|
||||
| +0x01 | 1 | Reserved |
|
||||
| +0x02 | 1 | Reserved |
|
||||
| +0x03 | 1 | Reserved |
|
||||
| +0x04 | 1 | Attribute ID |
|
||||
| +0x05 | 1 | Home Value |
|
||||
| +0x06 | 1 | Display Format |
|
||||
| +0x07 | 1 | Channel Index (0-based) |
|
||||
|
||||
---
|
||||
|
||||
## Notes
|
||||
|
||||
- Max 64 channels
|
||||
- 16-bit channels use flag bit
|
||||
- Home value for 16-bit pairs stored in second channel
|
||||
Reference in New Issue
Block a user