
B–61863E–1/06
2. PMC SYSTEM CALLPMC LIBRARY
169
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f f f
[Name]
os_make_pkt
[Description]
Selects the packet from the packet or memory pool.
[Format]
ret = os_make_pkt(packet_type,packet_address) ;
unsigned short ret ;
unsigned char packet_type ;
unsigned char **packet_address ;
[Input]
packet_type Packet type (0 to 3)
[Output]
*packet_address Packet address
[Returns]
ret Completion code
0 ; The packet has been selected normally.
011BH ; There is no packet block to be selected in the packet or
memory pool.
011FH ; Packet type error (other than 0 to 3)
0120H ; There is no empty packet.
0143H ; There is no memory pool.
015FH ; Incorrect segment selector
0160H ; Incorrect segment type
0162H ; No empty segment
[Remarks]
The packet types that can be specified by packet_type are listed
below. If the packet pool is insufficient, the packet is automatically
selected from the memory pool.
paket_type Size (bytes) Quantity
0
1
2
3
32
64
128
256
16
16
8
4
2.27
SELECTING THE
PACKET