函数的注释模板

来源:互联网 发布:罗永浩 支那人 知乎 编辑:程序博客网 时间:2024/06/05 19:48

示例:

//-----------------------------------------------------------------------------// Fifo_Read//-----------------------------------------------------------------------------//// Return Value : None// Parameters   ://                1) BYTE addr : target address//                2) unsigned int uNumBytes : number of bytes to unload//                3) BYTE * pData : read data destination//// Read from the selected endpoint FIFO////-----------------------------------------------------------------------------

模板:

//-----------------------------------------------------------------------------// (函数名)//-----------------------------------------------------------------------------//// Return Value : (返回值)// Parameters   : (形参列表)//                1) //                2) //                3) //// -(函数功能说明)////-----------------------------------------------------------------------------
0 0