+ * @param result SUCCESS if the the frame was transmitted (and a matching
+ * acknowledgement was received, if requested); FAIL if the CSMA-CA algorithm failed
+ * because NB > macMaxCsmaBackoffs.
+ *
+ * unslotted CSMA-CA was triggered successfully,
+ * FAIL otherwiseThe time of transmission or NULL if the transmission failed.
+ */
+ async event void transmitUnslottedCsmaCaDone(ieee154_txframe_t *frame,
+ bool ackPendingFlag, ieee154_csma_t *csmaParameters, error_t result);
+
+
+ /**
+ * Transmits the frame whose transmission has previously been prepared
+ * through a call to <tt>load()</tt> using the slotted CSMA-CA
+ * algorithm as specified in the IEEE 802.15.4-2006 standard Sect. 7.5.1.4. The initial
+ * CSMA-CA parameters are passed as a parameter, the algorithm should start immediately,
+ * but the frame transmission should start no later than <tt>slot0Time+dtMax</tt>. The backoff slot boundaries
+ * are defined relative to <tt>slot0Time</tt>, if the <tt>resume</tt>
+ * then the initial backoff (in symbols) is passed as the <tt>initialBackoff</tt> parameter.
+ *
+ * The <tt>transmitSlottedCsmaCaDone()</tt> event will signal the result
+ * of the transmission.
+ * A successful transmission may include an acknowledgement from the
+ * destination if the ACK_REQUESTED flag is set in the loaded frame's header; then,
+ * the callee also has to perform the necessary steps for receiving the
+ * acknowledgement (switching the radio to Rx mode immediately after
+ * transmission, etc., as specified in IEEE 802.15.4-2006 Sect. 7.5.6.4).
+ *
+ * @param slot0Time Reference time (last beacon)
+ * @param dtMax <tt>slot0Time+dtMax</tt> is the last time the frame may be transmitted.
+ * @param resume TRUE means that the initial backoff is defined by the
+ * <tt>initialBackoff</tt> parameter, FALSE means the <tt>initialBackoff</tt>
+ * should be ignored.
+ * @param initialBackoff initial backoff.
+ * @param csmaParameters parameters for the slotted CSMA-CA algorithm.
+ *
+ * @return SUCCESS if the slotted CSMA-CA was triggered successfully,
+ * FAIL otherwise.
+ */
+ async command error_t transmitSlottedCsmaCa(ieee154_reftime_t *slot0Time, uint32_t dtMax,
+ bool resume, uint16_t initialBackoff, ieee154_csma_t *csmaParameters);
+
+ /**
+ * Signalled in response to a call to <tt>transmitSlottedCsmaCa()</tt>.
+ * Depending on the
+ * <tt>error</tt> parameter the radio is now in the state RADIO_OFF
+ * (<tt>error == IEEE154_SUCCESS</tt>) or still in state TX_LOADED
+ * (<tt>error != IEEE154_SUCCESS</tt>). If the transmission succeeded then
+ * the time of the transmission -- the point in time when the first symbol of the
+ * PPDU was transmitted -- will be stored in the metadata field of the frame.
+ * It will also passed (possibly with higher precision) through the
+ * <tt>txTime</tt> parameter.