PDA

View Full Version : Max Value for 32bit Timers


prwatE120
January 16th, 2007, 04:24 PM
Are we agreed that the data in the 32bit Hours/Lamp/Lamp Strike counters is unsigned ? ie max value is 0xFFFFFFFF ?

As far as I can see we do not explicitly state this anywhere in the document - apologies if I have missed it.

regards

Peter Willis

Javid Butler
January 16th, 2007, 05:25 PM
Yes. I can't think of any situation where there would be negative lamp hours, and anything other than an unsigned integer would only lead to confusion.

sblair
January 19th, 2007, 06:43 PM
Yes, everything should be unsigned values so that the max value should be 0xFFFFFFFF.

It would also be a good idea for these type fields to not roll over if they exceed the 0xFFFFFFFF value and instead just remain at that Max value.

prwatE120
January 20th, 2007, 05:55 AM
Just a note that this was discussed at the Jan 19th 2007 Task group meeting in Dallas and that Scott's response reflected the consensus of the group at that time.

Peter Willis