It doesn't compile, compiler complains that the enum type of CC2420_GOTO_RX cannot be converted to netopt_state_t as required by the function. The numerical value of CC2420_GOTO_RX would be NETOPT_STATE_IDLE (2), which makes sense as it puts the device into RX mode.