toLvglEventType

Converts a value to a LvglEventType.

Return

The corresponding LvglEventType or a IllegalStateException if the value isn't recognised.