# Module p1_fsm

- Function Index
- Function Details

This module defines the `p1_fsm` behaviour.
Required callback functions: `init/1`, `handle_event/3`, `handle_sync_event/4`, `handle_info/3`, `terminate/3`, `code_change/4`.

## Function Index

cancel_timer/1 |
enter_loop/4 |
enter_loop/5 |
enter_loop/6 |
format_status/2 |
init_it/6 |
print_event/3 |
reply/2 |
send_all_state_event/2 |
send_event/2 |
send_event_after/2 |
start/3 |
start/4 |
start_link/3 |
start_link/4 |
start_timer/2 |
sync_send_all_state_event/2 |
sync_send_all_state_event/3 |
sync_send_event/2 |
sync_send_event/3 |
system_code_change/4 |
system_continue/3 |
system_terminate/4 |
wake_hib/7 |

## Function Details

### cancel_timer/1

`cancel_timer(Ref) -> any()`

### enter_loop/4

`enter_loop(Mod, Options, StateName, StateData) -> any()`

### enter_loop/5

`enter_loop(Mod, Options, StateName, StateData, ServerName) -> any()`

### enter_loop/6

`enter_loop(Mod, Options, StateName, StateData, ServerName, Timeout) -> any()`

### format_status/2

`format_status(Opt, StatusData) -> any()`

### init_it/6

`init_it(Starter, Parent, Name, Mod, Args, Options) -> any()`

### print_event/3

`print_event(Dev, X2, Name) -> any()`

### reply/2

`reply(X1, Reply) -> any()`

### send_all_state_event/2

`send_all_state_event(Name, Event) -> any()`

### send_event/2

`send_event(Name, Event) -> any()`

### send_event_after/2

`send_event_after(Time, Event) -> any()`

### start/3

`start(Mod, Args, Options) -> any()`

### start/4

`start(Name, Mod, Args, Options) -> any()`

### start_link/3

`start_link(Mod, Args, Options) -> any()`

### start_link/4

`start_link(Name, Mod, Args, Options) -> any()`

### start_timer/2

`start_timer(Time, Msg) -> any()`

### sync_send_all_state_event/2

`sync_send_all_state_event(Name, Event) -> any()`

### sync_send_all_state_event/3

`sync_send_all_state_event(Name, Event, Timeout) -> any()`

### sync_send_event/2

`sync_send_event(Name, Event) -> any()`

### sync_send_event/3

`sync_send_event(Name, Event, Timeout) -> any()`

### system_code_change/4

`system_code_change(X1, Module, OldVsn, Extra) -> any()`

### system_continue/3

`system_continue(Parent, Debug, X3) -> any()`

### system_terminate/4

`system_terminate(Reason::term(), Parent::term(), Debug::term(), X4::[term(), ...]) -> no_return()`

### wake_hib/7

`wake_hib(Parent, Name, StateName, StateData, Mod, Debug, Limits) -> any()`

Generated by EDoc, Dec 17 2015, 23:20:00.