typedef enum { VM_DCL_SIO_UART_READY_TO_READ = VM_DCL_SERIPORT_EVENTS_START, VM_DCL_SIO_UART_READY_TO_WRITE } VM_DCL_SIO_EVENT;
typedef enum { VM_DCL_SIO_UART_READY_TO_READ = VM_DCL_SERIPORT_EVENTS_START, VM_DCL_SIO_UART_READY_TO_WRITE } VM_DCL_SIO_EVENT;
VM_DCL_SIO_EVENT are serial port hardware events that can be registered with vm_dcl_registercallback.
VM_DCL_HANDLE uart_handle; VM_DCL_MODULE_TYPE usr_id; usr_id = vm_dcl_get_ownerid(); uart_handle = vm_dcl_open(VM_DCL_SIO_UART_PORT1,usr_id); vm_dcl_register_callback(uart_handle, VM_DCL_SIO_UART_READY_TO_WRITE, uart_callback, // Callback defined by user. NULL);
vmdcl_sio.h
|
Members |
Description |
|
VM_DCL_SIO_UART_READY_TO_READ = VM_DCL_SERIPORT_EVENTS_START |
UART read event. Call vm_dcl_read after receiving this event to read the data. |
|
VM_DCL_SIO_UART_READY_TO_WRITE |
UART write event. This is a notification, the application does not have to wait for this event to call vm_dcl_write. vm_dcl_write can be called at any time, and the outputs will be buffered. |
Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at
support@toolsfactory.com.