Calculate number of bytes the Id is
( self )
| 73 | return val |
| 74 | |
| 75 | def id_width_bytes( self ): |
| 76 | ''' |
| 77 | Calculate number of bytes the Id is |
| 78 | ''' |
| 79 | # 16 bit Id |
| 80 | if self.id_width == 0: |
| 81 | return 2 |
| 82 | |
| 83 | # 32 bit Id |
| 84 | else: |
| 85 | return 4 |
| 86 | |
| 87 | def full_len( self ): |
| 88 | ''' |