Added (safe) state change functions to cc1120.c.