X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Flib%2Fmac%2Ftkn154%2Finterfaces%2FMCPS%2FMCPS_DATA.nc;h=3cbe4725ec374cb82de96f42326aa628312fa355;hp=5870943857f8b4fae6ccc18b2f2118fe26cd5694;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 diff --git a/tos/lib/mac/tkn154/interfaces/MCPS/MCPS_DATA.nc b/tos/lib/mac/tkn154/interfaces/MCPS/MCPS_DATA.nc index 58709438..3cbe4725 100644 --- a/tos/lib/mac/tkn154/interfaces/MCPS/MCPS_DATA.nc +++ b/tos/lib/mac/tkn154/interfaces/MCPS/MCPS_DATA.nc @@ -33,6 +33,12 @@ * ======================================================================== */ +/** + * The MCPS-DATA.request primitive requests the transfer of a data SPDU (i.e., + * MSDU) from a local SSCS entity to a single peer SSCS entity. (IEEE + * 802.15.4-2006, Sect. 7.1.1) + */ + #include "TKN154.h" #include @@ -40,17 +46,15 @@ interface MCPS_DATA { /** - * "The MCPS-DATA.request primitive requests the transfer of a data - * SPDU (i.e., MSDU) from a local SSCS entity to a single peer SSCS - * entity." (IEEE 802.15.4-2006, Sec. 7.1.1.1) + * "Requests to transfer a data SPDU (i.e., MSDU) from a local SSCS + * entity to a single peer SSCS entity." (IEEE 802.15.4-2006, Sec. + * 7.1.1.1) * - * The MSDU is the payload portion of a message_t (frame<\code> - * parameter) and can be accessed through the IEEE154Frame<\code> - * interface. In contrast to the standard interface definition address - * information is not passed as separate parameters; instead, the - * address information is already part of the frame<\code>, - * i.e. it must have been set (through the IEEE154Frame<\code> - * interface) before this command is called. + * The source/destination addressing mode, destination PAN + * identifier, destination address, the payload and (optionally) the + * security mode/key are part of the frame and must have + * been set (through the IEEE154Frame interface) before + * calling this command. * * If this command returns IEEE154_SUCCESS, then the confirm event * will be signalled in the future; otherwise, the confirm event @@ -58,12 +62,12 @@ interface MCPS_DATA * * @param frame The frame to send * @param payloadLen The length of the frame payload - * @param msduHandle Handle associated with the frame to be transmitted + * @param msduHandle Handle associated with the frame * @param TxOptions Bitwised OR transmission options * - * @return IEEE154_SUCCESS if the request succeeded and a confirm event - * will be signalled, an appropriate error code otherwise - * (no confirm event will be signalled in this case) + * @return IEEE154_SUCCESS if the request succeeded and only + * then the confirm() event will be signalled; + * an appropriate error code otherwise * @see confirm */ @@ -75,14 +79,14 @@ interface MCPS_DATA ); /** - * Confirm reports the results of a request to transfer a frame to a - * peer SSCS entity. + * Reports the result of a request to transfer a frame to a peer + * SSCS entity. * - * @param frame The frame which was requested to send + * @param frame The frame which was requested to be sent * @param msduHandle The handle associated with the frame * @param status The status of the last MSDU transmission - * @param timestamp Time of transmission (invalid if status is - * not IEEE154_SUCCESS) + * @param timestamp Time of transmission (invalid if status + * is not IEEE154_SUCCESS) */ event void confirm ( message_t *frame, @@ -92,8 +96,9 @@ interface MCPS_DATA ); /** - * Indicates the arrival of a frame. Address information can be accessed - * through the IEEE154Frame<\code> interface. + * Indicates the arrival of a frame. Use the IEEE154Frame + * interface to get the payload, source/destination addresses, DSN + * and other information associated with this frame. * * @return A frame buffer for the stack to use for the next received frame */