AnsweredAssumed Answered

IO_IOCTL_SERIAL_GET_STATS

Question asked by billnd on Feb 24, 2014
Latest reply on Mar 3, 2014 by soledad

The ioctl command, when used with IO_IOCTL_SERIAL_GET_STATS returns a number of uint_32 to a buffer pointed to by the supplied param_ptr. I don't see any documentation for how many uint_32 may be written, and hence how large the buffer needs to be. Currently, by checking the source code, it looks like it writes 8 words.

 

What happens if this changes in the future MQX releases, perhaps by supplying 9 words? This is a recipe for disaster. Am I missing something?

 

Also, is there a method of getting/clearing only some of the statistics, ie just the error counts?

 

And lastly, why is RX_NOISE_ERRORS not included in the current methods?

 

Cheers

Bill

Outcomes