Re: driver state machine
The states of any state machine are private (static) to that task. It is a good thing that you don't have direct access to it.
If you need to know the state (but this is not the internal state, rather something like 'connecting', 'timeout' etc.), there are access functions or other ways (callback functions) to find out what is happening.