in reply to Re^2: Problem Writing to FTDI COM Port using Win32::FTDI::FTD2XX
in thread Problem Writing to FTDI COM Port using Win32::FTDI::FTD2XX
It wants a mode and a mask, and if you're passing in the ID, it's interpreting that as the mask. Unless you've got an older version or something, passing in the ID may supress some error, but it's not likely doing the right thing.sub SetBitMode { my $self = shift; my $mask = shift; my $mode = shift; unless( defined( $self->{_PFT_SetBitMode} ) ) { return( undef ) unless( _importDll( $self, "PFT_SetBitMode" ) ); } $self->{_PFT_STATUS} = $self->{_PFT_SetBitMode}->Call( $self->{_PFT_ +HANDLE}, $mask, $mode ); return( 0 ) if( $self->{_PFT_STATUS} ); return( 1 ); } # SetBitMode()
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Problem Writing to FTDI COM Port using Win32::FTDI::FTD2XX
by PrfrrdUsrNm (Initiate) on Jan 16, 2014 at 06:06 UTC | |
by kschwab (Vicar) on Jan 16, 2014 at 14:18 UTC | |
by PrfrrdUsrNm (Initiate) on Jan 17, 2014 at 03:27 UTC | |
by kschwab (Vicar) on Jan 17, 2014 at 11:52 UTC | |
by PrfrrdUsrNm (Initiate) on Jan 20, 2014 at 05:12 UTC |