| | |
| | | #include "protocol_internal.h" |
| | | #include "moduleexport.h" |
| | | #include "crc.h" |
| | | #include "../drv/memory.h" |
| | | |
| | | s32 Scene::str_delim(const s8* str, u16 logic_channel[]) |
| | | { |
| | |
| | | mixer->mType = ModuleType::PROC_MIXER; |
| | | mixer->mTag = 0; |
| | | mixer->mPhyModule = 0; |
| | | mixer->mParamaddr = (s32)get_module_param_ptr(p->parameters,p->fixed); |
| | | mixer->mParamaddr = (s32)get_module_param_ptr(mixer->mType, p->parameters, p->fixed); |
| | | |
| | | size += sizeof(struct Module); |
| | | |
| | |
| | | m->mType = p->proc_type; |
| | | m->mTag = p->tag; |
| | | m->mPhyModule = p->physic_type; |
| | | m->mParamaddr = (s32)get_module_param_ptr(p->parameters,p->fixed); |
| | | m->mParamaddr = (s32)get_module_param_ptr(m->mType, p->parameters, p->fixed); |
| | | |
| | | size += sizeof(struct Module); |
| | | m->mRxNum = ninports; |
| | |
| | | PhyPort* phy_id = (PhyPort*)(bin + size); |
| | | for(j = 0 ; j< ninports ;j ++, phy_id++) { |
| | | phy_id->mIntType = 0; |
| | | phy_id->mPhyID = hw_adapter->get_physical_channel(1, j); |
| | | phy_id->mPhyID = hw_adapter->get_physical_channel(1, rxBufID[j]-1); |
| | | // printf("PhyID:%d\n", phy_id->mPhyID); |
| | | } |
| | | size += ninports*sizeof(PhyPort); |
| | | } |
| | |
| | | PhyPort* phy_id = (PhyPort*)(bin + size); |
| | | for(j = 0 ; j< noutports ;j ++, phy_id++) { |
| | | phy_id->mIntType = 0; |
| | | phy_id->mPhyID = hw_adapter->get_physical_channel(0, j); |
| | | phy_id->mPhyID = hw_adapter->get_physical_channel(0, txBufID[j]-1); |
| | | } |
| | | size += noutports*sizeof(PhyPort); |
| | | } |