drivers: can: add API for getting supported capabilities
Add API function for getting the supported capabilities of a CAN controller. This allows for writing portable CAN applications. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
7a5f96d844
commit
bb08e4251a
13 changed files with 107 additions and 0 deletions
|
@ -58,6 +58,7 @@ static int mcux_mcan_init(const struct device *dev)
|
|||
}
|
||||
|
||||
static const struct can_driver_api mcux_mcan_driver_api = {
|
||||
.get_capabilities = can_mcan_get_capabilities,
|
||||
.set_mode = can_mcan_set_mode,
|
||||
.set_timing = can_mcan_set_timing,
|
||||
.send = can_mcan_send,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue