amitk3553 Posted November 12, 2013 Report Share Posted November 12, 2013 Hello all, I had developed function in following way in my code, i am getting errors given below. Please let me know the cause of these errors. Function declaration, definition void payload_gen(tlm_generic_payload trans_payload, simple_initiator_socket ini_socket, tlm_command read_write_cmd_pyld, sc_dt::uint64 addr, unsigned int data_len, unsigned char* pkt) { trans_payload.set_command(read_write_cmd_pyld); . . trans_payload.set_data_ptr((unsigned char*)(pkt)); . . } Function call payload_gen(hci_host_trans, hci_host_ini_socket, TLM_WRITE_COMMAND, EVT_COMMAND_COMPLETE_EVENT_CODE, 6, &return_evt_pkt[0]); After Compilation note: synthesized method ‘tlm_utils::simple_initiator_socket::simple_initiator_socket(const tlm_utils::simple_initiator_socket&)’ first required here error: initializing argument 2 of ‘void hci_top::payload_gen(tlm::tlm_generic_payload, tlm_utils::simple_initiator_socket, tlm::tlm_command, sc_dt::uint64, unsigned int, unsigned char*)’ Regards cam Quote Link to comment Share on other sites More sharing options...
amitk3553 Posted November 13, 2013 Author Report Share Posted November 13, 2013 ITS SOLVED Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.