10 years, 2 months ago.

CAN mode method - is it implemented?

I'm trying to change the CAN mode using the mode(..) method. After invoking this method, the return value is 0. API documentation indicates either this feature is not implemented or something else. Is this method implemented?

Question relating to:

1 Answer

10 years, 2 months ago.

regarding to the source tree ...
https://github.com/mbedmicro/mbed/blob/master/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/can_api.c

int can_mode(can_t *obj, CanMode mode) {
return 0; // not implemented
}
int can_filter(can_t *obj, uint32_t id, uint32_t mask, CANFormat format, int32_t handle) {
return 0; // not implemented
}

Thanks, I was having difficulty quickly finding the source code location. Since you posted 2 locations for source code, which location is recommended? Or are both locations mirrored?

posted by Dave Williams 21 Sep 2014

I think the following mbed-src page is better than the github site.

http://mbed.org/users/mbed_official/code/mbed-src/

posted by Yoshi Mimura 22 Sep 2014