Actions

Difference between revisions of "Data types"

From Zenitel Wiki

Line 5: Line 5:
 
! style="background:#ffdead;" width="650" |Definition
 
! style="background:#ffdead;" width="650" |Definition
 
|-
 
|-
| [[UINT1]] || 8 [[Wikipedia:Binary_digit|bits]] (one [[Wikipedia:byte|byte]])
+
| UINT1 || 8 [[Wikipedia:Binary_digit|bits]] (one [[Wikipedia:byte|byte]])
 
|-
 
|-
|[[SINT1]]||1-­byte signed integer  
+
|SINT1||1-­byte signed integer  
 
|-
 
|-
|[[UINT2]]||2­byte unsigned integer. [[MSB]] first  
+
|UINT2||2­byte unsigned integer. MSB first  
 
|-
 
|-
|[[UINT4]]||4­byte unsigned integer. [[MSB]] first  
+
|UINT4||4­byte unsigned integer. MSB first  
 
|-
 
|-
|[[BITMAP]][1..n]||n­bits bitmap (multiple of 8). Always fills whole bytes. <br\>- Unused bits in last byte is set to 0. <br\>- First bit is the most significant (leftmost) bit in first byte.<br\>- Bits are numbered from 1, a byte contains bits 1..8.  
+
|BITMAP[1..n]||n­bits bitmap (multiple of 8). Always fills whole bytes. <br\>- Unused bits in last byte is set to 0. <br\>- First bit is the most significant (leftmost) bit in first byte.<br\>- Bits are numbered from 1, a byte contains bits 1..8.  
 
|-
 
|-
|[[VBITMAP]][1..n]||Variable length bitmap with n bits. (n is a multiple of 8.)   
+
|VBITMAP[1..n]||Variable length bitmap with n bits. (n is a multiple of 8.)   
Structure:<br\>[[UINT1 ]] - containing the number of bytes in the following bitmap. <br\>bitmap  - always fills whole bytes. <br\>- Unused bits in last byte is set to 0. <br\>- First bit is the most significant (leftmost) bit in first byte.  
+
Structure:<br\>UINT1 - containing the number of bytes in the following bitmap. <br\>bitmap  - always fills whole bytes. <br\>- Unused bits in last byte is set to 0. <br\>- First bit is the most significant (leftmost) bit in first byte.  
 
|-
 
|-
|[[TEXT16]]||16 characters (bytes) of text. Padded with spaces. <br\>ASCII values > 32 (0x20) only.  
+
|TEXT16||16 characters (bytes) of text. Padded with spaces. <br\>ASCII values > 32 (0x20) only.  
 
|-
 
|-
|[[CLOCK]]||Date & time structure:<br\>[[UINT2]] Year (yyyy)<br\>[[UINT1]] Month (mm)<br\>[[UINT1]] Day (dd)<br\>[[UINT1]] Hour (hh)<br\>[[UINT1]] Minutes (mm)<br\>[[UINT1]] Seconds (ss)
+
|CLOCK||Date & time structure:<br\>UINT2 Year (yyyy)<br\>UINT1 Month (mm)<br\>UINT1 Day (dd)<br\>UINT1 Hour (hh)<br\>UINT1 Minutes (mm)<br\>UINT1 Seconds (ss)
 
|-
 
|-
|[[NET_OBJ_REF]]||[[AlphaCom]] Intercom Object Reference. <br\>Can both encode directory numbers and physical numbers
+
|[[NET_OBJ_REF]]||AlphaCom Intercom Object Reference. <br\>Can both encode directory numbers and physical numbers
 
|-
 
|-
 
|}
 
|}

Revision as of 11:12, 22 June 2007

The following table identifies the data types used in the application data of the AlphaNet Data Protocol:

Data Type Definition
UINT1 8 bits (one byte)
SINT1 1-­byte signed integer
UINT2 2­byte unsigned integer. MSB first
UINT4 4­byte unsigned integer. MSB first
BITMAP[1..n] n­bits bitmap (multiple of 8). Always fills whole bytes. <br\>- Unused bits in last byte is set to 0. <br\>- First bit is the most significant (leftmost) bit in first byte.<br\>- Bits are numbered from 1, a byte contains bits 1..8.
VBITMAP[1..n] Variable length bitmap with n bits. (n is a multiple of 8.)

Structure:<br\>UINT1 - containing the number of bytes in the following bitmap. <br\>bitmap - always fills whole bytes. <br\>- Unused bits in last byte is set to 0. <br\>- First bit is the most significant (leftmost) bit in first byte.

TEXT16 16 characters (bytes) of text. Padded with spaces. <br\>ASCII values > 32 (0x20) only.
CLOCK Date & time structure:<br\>UINT2 Year (yyyy)<br\>UINT1 Month (mm)<br\>UINT1 Day (dd)<br\>UINT1 Hour (hh)<br\>UINT1 Minutes (mm)<br\>UINT1 Seconds (ss)
NET_OBJ_REF AlphaCom Intercom Object Reference. <br\>Can both encode directory numbers and physical numbers