Packets Period Packet

This packet allows the user to configure, add, remove, modify and clear state packets (packets 20 through 180).

Packets Period Packet
Packet ID 181
Length 2 + (5 x number of packet periods)
Read / Write Read / Write
Field # Bytes Offset Data Type Size Description
1 0 u16 1 Flags
2 2 u8 1 Packet ID
3 3 u32 4 Packet Period
+       Fields 2-3 repeat for additional packet periods

Packets Period Packet

Flags

Bit

Description

0

Permanent

1-3

Port

4

Port field valid

5-7

Reserved

8

Clear Existing Packet Periods

9-15

Reserved

Packet period flags

Packet Period

This indicates the period in units of the packet timer period. The packet rate can be calculated as follows.

Packet Rate = 1000000/(Packet Period x Packet Timer Period) Hz

For example if the packet timer period is set to 1000 (1 ms). Setting packet ID 20 with a packet period of 50 will give the following.

Packet 20 Rate = 1000000/(50 x 1000)

Packet 20 Rate = 20 Hz