serialpacketinfo.nc

来自「tinyos-2.0源代码!转载而已!要的尽管拿!」· NC 代码 · 共 33 行

NC
33
字号
/** * Accessor methods used by a serial dispatcher to communicate with various * message_t link formats over a serial port. * * @author Philip Levis * @author Ben Greenstein * @date August 7 2005 */interface SerialPacketInfo {  /**   * Get the offset into a message_t where the header information begins.   * @return Returns the offset.   */  async command uint8_t offset();  /**   * Get the size of the datalink packet embedded in the message_t, in bytes.    * This is the sum of the payload (upperLen) and the size of the link header.   * @param msg A pointer to the message_t to interrogate. (unused)   * @param upperLen The size of the payload.   * @return Returns the size of the datalink packet.   */  async command uint8_t dataLinkLength(message_t* msg, uint8_t upperLen);  /**   * Get the size of the payload (in bytes) given the size of the datalink   * packet (dataLinkLen) embedded in the message_t.   * @param msg A pointer to the message_t to interrogate. (unused)   * @param dataLinkLength The size of the datalink packet.   * @return Returns the size of the payload.   */  async command uint8_t upperLength(message_t* msg, uint8_t dataLinkLen);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?