User manual
136
line_id - line number
Return:
0 - No errors
virtual int extra(void * extra, int arg, unsigned char line_id) = 0;
Callback function, serial line must call serial line controller’s callback function extra (...) for
extra features. Simple wrapper is implemented in class chapi_serial_line_interface for calling
this function.
extra - void pointer
arg - integer argument
line_id - line number
Return: 0 - No errors
virtual void get_sys_err( unsigned long err ) = 0;
System error logging, also callback function, serial line must call serial line controller’s
callback get_sys_err(...) for system error logging. Simple wrapper is implemented in class
chapi_serial_line_interface for calling this function.
err - system error number
void log_msg(log_message_type_t msg_type, const char *str);
Message logging, also callback function, serial line must call serial line controller’s
callback log_msg(...) for message logging. Simple wrapper is implemented in class
chapi_serial_line_interface for calling this function.
msg_type - type of message
*str - message
void debug_trace(unsigned char debug_level, const char *str);
Trace logging, also callback function, serial line must calls serial line controller’s callback
debug_trace(...) for trace logging. Simple wrapper is implemented in class
chapi_serial_line_interface for calling this function.










