Problem setting bit rate adapting
Posted: Thu 8. Nov 2018, 19:26
I'm using a PCAN USB device.
I'm trying to do this in C#:
TPCANStatus status = 0;
uint enable = PCANBasic.PCAN_PARAMETER_ON;
status = PCANBasic.SetValue(handle, TPCANParameter.PCAN_BITRATE_ADAPTING,
ref enable, Convert.ToUInt32(Marshal.SizeOf(enable)));
The returned status always equals TPCANStatus.PCAN_ERROR_ILLPARAMTYPE.
This is something that I thought had worked previously.
I'm out of ideas.
I'm trying to do this in C#:
TPCANStatus status = 0;
uint enable = PCANBasic.PCAN_PARAMETER_ON;
status = PCANBasic.SetValue(handle, TPCANParameter.PCAN_BITRATE_ADAPTING,
ref enable, Convert.ToUInt32(Marshal.SizeOf(enable)));
The returned status always equals TPCANStatus.PCAN_ERROR_ILLPARAMTYPE.
This is something that I thought had worked previously.
I'm out of ideas.