Hot!driver state machine

Author
jackwang1030
New Member
  • Total Posts : 7
  • Reward points : 0
  • Joined: 2018/02/05 16:43:57
  • Location: 0
  • Status: offline
2018/02/14 15:20:03 (permalink)
0

driver state machine

Hi
I made two driver spi, usart and app for the two drivers with harmony. I found spi application state veriable is appData.spistateMachine. but usart application state veriable is  usartBMState. usart app state veriable is not placed 
into appData. why ?
 
thanks
jack
#1

2 Replies Related Threads

    Gort2015
    Klaatu Barada Nikto
    • Total Posts : 2645
    • Reward points : 0
    • Joined: 2015/04/30 10:49:57
    • Location: 0
    • Status: offline
    Re: driver state machine 2018/02/14 15:34:57 (permalink)
    0
    Clarify?

    MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
    https://www.youtube.com/watch?v=Iu1qa8N2ID0
    + ST:Continues, "What Ships are Made for", Q's back.
    #2
    muellernick
    Super Member
    • Total Posts : 396
    • Reward points : 0
    • Joined: 2015/01/06 23:58:23
    • Location: Germany
    • Status: offline
    Re: driver state machine 2018/02/15 04:14:53 (permalink)
    0
    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.
     
    Nick
    #3
    Jump to:
    © 2018 APG vNext Trial Version 4.5