<< Previous | Next >> | |
|
int pktXinitBuffers( int buf_count, int buf_size ); /* X is A-F */
Description
- Allocates extended memory for channel X receive buffers. This function should not be called more than once in a program. The total memory allocated is buf_count*(buf_size + 2) bytes.
- The functions
pktEinitBuffers()
andpktFinitBuffers()
may be used with the Rabbit 3000 and Rabbit 4000.Parameters
- buf_count
- The number of buffers to allocate. Each buffer can store one received packet. Increasing this number allows for more pending packets and a larger latency time before packets must be processed by the user's program.
- buf_size
- The number of bytes each buffer can accommodate. This should be set to the size of the largest possible packet that can be expected.
Return value
1
: Success, extended memory was allocated.
0
: Failure, no memory allocated, the packet channel cannot be used.Library
- PACKET.LIB
Dynamic C Functions | << Previous | Next >> | rabbit.com |