Message Queues
Input/Output Methods
6-17
Allocators and transports have a standard interface. The allocator and
transport interface functions are called by the MSGQ functions and not by the
application. DSP/BIOS provides a simple static allocator; other allocators and
transports can be implemented by following the standard interface.
Note:
This document does not discuss how to write an allocator or a
transport. Information about designing allocators and transports will be
provided in a future document.
6.5.1
MSGQ APIs
The MSGQ APIs are used to open and close message queues and to send
and receive messages. The MSGQ APIs shield the application from having
to contain any knowledge about transports and allocators.
The following figure shows the call sequence of the main MSGQ functions:
Figure 6-5.
MSGQ Function Calling Sequence
The reader calls the following APIs:
❏
MSGQ_open
❏
MSGQ_get
❏
MSGQ_free
❏
MSGQ_close
A writer calls the following APIs:
❏
MSGQ_locate or MSGQ_locateAsync
❏
MSGQ_alloc
❏
MSGQ_put
❏
MSGQ_release
M SG Q _open()
M SGQ _locate()
M SGQ _alloc()
M SG Q_close()
M SGQ _release()
M SG Q_free()
M SG Q_get()
M SG Q_put()
startup
run
term ination
Содержание TMS320 Series
Страница 1: ...TMS320 DSP BIOS v5 40 User s Guide Literature Number SPRU423G April 2009 ...
Страница 16: ...xvi ...
Страница 152: ...Tasks 4 48 Figure 4 12 Trace from Example 4 7 ...
Страница 168: ...Semaphores 4 64 Figure 4 14 Trace Results from Example 4 11 ...
Страница 202: ...5 20 ...
Страница 287: ...Index 9 Index Void 1 11 W words data memory 3 15 of code 1 5 wrapper function 2 29 ...
Страница 288: ...Index 10 Index ...