Lines Matching full:state
70 const char * smp_get_state_name(tSMP_STATE state);
158 /************ SMP Master FSM State/Event Indirection Table **************/
161 /* state name: Idle WaitApp SecReq Pair Wait Confirm Init Enc Bond Rel
190 /* Event Action Next State */
197 /* Event Action Next State */
203 /* Event Action Next State */
212 /* Event Action Next State */
219 /* Event Action Next State */
224 /* Event Action Next State */
229 /* Event Action Next State */
235 /* Event Action Next State */
241 /* Event Action Next State */
251 /* Event Action Next State */
257 /************ SMP Slave FSM State/Event Indirection Table **************/
260 /* state name: Idle Wait SecReq Pair Wait Confirm Init Enc Bond Rel
291 /* Event Action Next State */
297 /* Event Action Next State */
305 /* Event Action Next State */
311 /* Event Action Next State */
319 /* Event Action Next State */
324 /* Event Action Next State */
329 /* Event Action Next State */
334 /* Event Action Next State */
341 /* Event Action Next State */
352 /* Event Action Next State */
386 void smp_set_state(tSMP_STATE state)
388 if (state < SMP_ST_MAX)
390 SMP_TRACE_DEBUG4( "State change: %s(%d) ==> %s(%d)",
391 smp_get_state_name(smp_cb.state), smp_cb.state,
392 smp_get_state_name(state), state );
393 smp_cb.state = state;
397 SMP_TRACE_DEBUG1("smp_set_state invalid state =%d", state );
403 ** Returns The smp state
407 return smp_cb.state;
415 ** Description Handle events to the state machine. It looks up the entry
417 ** If it is a valid entry, it gets the state table.Set the next state,
418 ** if not NULL state.Execute the action function according to the
419 ** state table. If the state returned by action function is not NULL
420 ** state, adjust the new state to the returned state.If (api_evt != MAX),
428 UINT8 curr_state = p_cb->state;
436 SMP_TRACE_DEBUG1( "Invalid state: %d", curr_state) ;
440 SMP_TRACE_DEBUG5( "SMP Role: %s State: [%s (%d)], Event: [%s (%d)]",\
441 (p_cb->role == 0x01) ?"Slave" : "Master", smp_get_state_name( p_cb->state),
442 p_cb->state, smp_get_event_name(event), event) ;
444 /* look up the state table for the current state */
447 * Otherwise, get state table (according to curr_state or all_state) */
460 SMP_TRACE_DEBUG4( "Ignore event [%s (%d)] in state [%s (%d)]",
465 /* Get possible next state from state table. */
469 /* If action is not ignore, clear param, exec action and get next state.
485 SMP_TRACE_DEBUG1( "result state = %s", smp_get_state_name( p_cb->state ) ) ;
491 ** Returns The smp state name.
493 const char * smp_get_state_name(tSMP_STATE state)
497 if (state < SMP_ST_MAX)
499 p_str = smp_state_name[state];