
B–61863E–1/06
2. PMC SYSTEM CALLPMC LIBRARY
171
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f f f
[Name]
os_send_pkt
[Description]
Sends the packet to the specified task.
[Format]
ret = os_send_pkt(packet_address,task_id,priority,packet_id) ;
unsigned short ret ;
unsigned char *packet_address ;
unsigned char task_id ;
unsigned char priority ;
unsigned long packet_id ;
[Input]
*packet_address Packet address
task_id Task ID (0 or 10 to 25)
For 0, the packet is sent to the local task.
priority (0 to 255)
packet_id (1 to 2147483647)
[Output]
______
[Returns]
ret Completion code
0 ; The packet has been sent normally.
0104H ; The specified task ID is out of range (0 or 10 to 99).
010CH ; There is no specified task.
015FH ; Incorrect segment selector
0160H ; Incorrect segment type
0161H ; There is no segment for the specified packet address.
[Remarks]
priority indicates the packet priority. For 0, the packet is linked to the
beginning of the receiving destination packet queue.
packet_id can be used to freely assign numbers to the packets.
2.29
SENDING THE
PACKET