This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SYS/BIOS queue send and receive API

hi

I am trying to use SYS/BIOS queues .my requirement is i have to send an element(function) to the queue and same thing i have to receive from the queue .but i didnt find any API'S in TI rtos which suits this functionality .

Is there any API'S used to send and receive element from queue?

thanks in advance!!!!

  • I don't think it's clear what you're trying to achieve. Queues have Queue_put and Queue_get functions to "send" and "receive" elements, but your terminology suggests that you want something else. Could you tell us what precisely you want to do?

  • hi markus
    thank you
    i will update my question more clear ...
  • hi markus
    question is related to queue send and recieve
    struct CmdProcessor_Cmd_S
    {
    Queue_Elem _elem;
    CmdProcessor_Func_T func;
    void *param1;
    uint32_t param2;
    };
    CmdProcessor_Cmd_S cmd1;

    this is my queue structure having queue element ,function and two parameters and
    i have a queue handle and queue structure and i can able to create a queue and also i have return type as queue handle.
    the thing is when i use
    Queue_put(cmdProcessor_queue, &cmd1->_elem); // cmdProcessor_queue--queue handle from create queue
    when i use this queue put for sending one function to the queue as a queue element (&cmd1->_elem) am unable to pass the function and when i debug ,,it is strucking at queue_put() ,,,and i am unable to get the same function in the queue_get()

    so it is correct to use queue_put() and queue_get() to send element to the queue and recieve element from the queue(ex...am passing function here)
    suggest any answer!!!!!
    thanks in advance
  • Hi Naveen,

    Please refer to the section 4.5 Queues in SYS/BIOS User Guide.  Example codes are provided which demonstrates the basic operation of Queues. Additionally, you can refer to SYS/BIOS API document for API details.

    Vikram