Download Hardware Manual
Transcript
USB-CANmodul UcanReadUserPortEx Syntax: UCANRET PUBLIC UcanReadUserPortEx ( tUcanHandle UcanHandle_p, BYTE* pbInValue_p, BYTE* pbLastOutEn_p, BYTE* pbLastOutVal_p); Usability: HW_INIT, CAN_INIT , version 3.00 and higher Description: Reads the current input value from the expansion port. This function may be used alternatively for function UcanReadUserPort(). Parameter: UcanHandle_p: USB-CAN handle received with the UcanInitHardware() or UcanInitHardwareEx(). pbInValue_p: Address pointing to a variable that contains the read input value following the successful return of this function. This variable then contains the state of the 8-bit expansion port. Each bit in this parameter corresponds to matching pin on the expansion port. pbLastOutEn_p: Address pointing to a variable that contains the configuration data following the successful return of this function (configuration that was previously done with UcanConfigUserPort()). This parameter may be NULL. pbLastOutVal_p: Address pointing to a variable that contains the last output value following the successful return of this function. (output value that was written with UcanWriteUserPort()).This parameter may be NULL. Return value: function Error code of the function. USBCAN_SUCCESSFUL USBCAN_ERR_MAXINSTANCES USBCAN_ERR_ILLHANDLE USBCAN_ERR_BUSY USBCAN_ERR_IOFAILED USBCAN_ERR_ILLHW USBCAN_ERR_ILLPARAM USBCAN_ERR_DATA USBCAN_ERR_ABORT USBCAN_ERR_DISCONNECT USBCAN_ERR_TIMEOUT USBCAN_ERRCMD_… 120 SYS TEC electronic GmbH 2010 L-487e_22