Defines the Device Communications Toolkit features that are supported in this customized communication enabler.
You can find the template for this subroutine in:
usrtm_protin.c
Syntax
void user_protocol_info(max_buffer_size, supported)
int *max_buffer_size;
SUPPORT *supported;
Input Parameters
None.
Output Parameters
max_buffer_size
Defines the amount of data (in bytes) that can be transferred between the device and the enabler in one operation.
user_read_data(), user_write_data() and user_process_unsolicited() cannot process more than the max_buffer_size bytes of data.
max_buffer_size may not exceed the size of TOOLKIT_MAX_INTERNAL_BUFFER.
supported
Is a pointer to a structure defining the supported options for the device. SUPPORT is a typedef to a structure defined in <inc_path/toolkit.h> .
Return Value
None.
Device Communications toolkit subroutines. |