关于wince usbfn mdd层的代码问题
最近在看wince OAK/DRIVER/usbfn/MDD层下的代码
在mdd目录下的pipe.CPP中PUSB_ENDPOINT_DESCRIPTOR CDynamicPipe::GetEndpointDescriptor( UFN_BUS_SPEED speed ) 函数中有一句代码如下:
ce::hash_map<DWORD,DWORD>::const_iterator valueIterator;
找到他的定义在oak/inc/hash.h中
1.namespace ce
{
// hash_traits template - defines hash function for numeric types
template <typename T>
struct hash_traits
{
size_t hash_function(const T& Key) const
{
return (size_t)Key;
}
};
在PIPE.H中也有调并有注释
ce::hash_map<DWORD,DWORD> m_rgdwFullSpeedInterfaceNumber;
// Number of the interface in full speed descriptor
ce::hash_map<DWORD,DWORD> m_rgdwHighSpeedInterfaceNumber;
// Number of the interface in high speed descriptor
ce::hash_map<DWORD,DWORD> m_rgdwReservedSpeedMask;
// Reserved speed mask (for Configuration/Alternate combination)
ce::hash_map<DWORD,PUSB_ENDPOINT_DESCRIPTOR> m_rgpFullSpeedEndpointDesc;
// endpoint descriptor (for Configuration/Alternate combination)
ce::hash_map<DWORD,PUSB_ENDPOINT_DESCRIPTOR> m_rgpHighSpeedEndpointDesc;
// endpoint descriptor (for Configuration/Alternate combination)
注释的信息对我的研究问题很有帮助,请哪位高手帮我分析这个函数的意义啊?小弟不胜感激!!!!!
[解决办法]
USB的代码看了不少,不过这个还真没看,帮顶一下吧。