mcp2517fd 2.0.0.0
|
This file contains API for MCP2517FD Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | mcp2517fd_can_cfg_t |
MCP2517FD Click CAN Configure. More... | |
struct | mcp2517fd_config_t |
MCP2517FD Click CAN Message Configuration. More... | |
struct | mcp2517fd_msg_obj_id_t |
MCP2517FD Click CAN Message Object ID. More... | |
struct | mcp2517fd_tx_msg_obj_ctl_t |
MCP2517FD Click CAN TX Message Object Control. More... | |
union | mcp2517fd_tx_msg_obj_t |
MCP2517FD Click CAN TX Message Object. More... | |
struct | mcp2517fd_rx_msg_obj_ctl_t |
MCP2517FD Click CAN RX Message Object Control. More... | |
union | mcp2517fd_rx_msg_obj_t |
MCP2517FD Click CAN RX Message Object. More... | |
union | mcp2517fd_tef_msg_obj_t |
MCP2517FD Click CAN TEF Message Object. More... | |
struct | mcp2517fd_filt_obj_id_t |
MCP2517FD Click CAN Filter Object ID. More... | |
union | mcp2517fd_filt_obj_t |
MCP2517FD Click Filter Object Register. More... | |
struct | mcp2517fd_mask_obj_id_t |
MCP2517FD Click CAN Mask Object ID. More... | |
union | mcp2517fd_mask_obj_t |
MCP2517FD Click Mask Object Register. More... | |
union | mcp2517fd_reg_t |
union | mcp2517fd_ctl_t |
MCP2517FD Click CAN Control Register. More... | |
union | mcp2517fd_tx_que_ctl_t |
MCP2517FD Click Transmit Queue Control Register. More... | |
union | mcp2517fd_tef_ctl_t |
MCP2517FD Click Transmit Event FIFO Control Register. More... | |
union | mcp2517fd_fifo_ctl_t |
MCP2517FD Click FIFO Control Register. More... | |
union | mcp2517fd_filt_ctl_t |
MCP2517FD Click Filter Control Register. More... | |
union | mcp2517fd_osc_ctl_t |
MCP2517FD Click Oscillator Control Register. More... | |
struct | mcp2517fd_div_ctl_t |
MCP2517FD Click Oscillator Control. More... | |
union | mcp2517fd_io_ctl_t |
MCP2517FD Click I/O Control Register. More... | |
union | mcp2517fd_ecc_ctl_t |
MCP2517FD Click ECC Control Register. More... | |
struct | T_MCP2517FD_cfg_t |
MCP2517FD Click CAN Configure. More... | |
struct | mcp2517fd_tx_fifo_cfg_t |
MCP2517FD Click CAN Transmit Channel Configure. More... | |
struct | mcp2517fd_tx_que_cfg_t |
MCP2517FD Click CAN Transmit Queue Configure. More... | |
struct | mcp2517fd_rx_fifo_cfg_t |
MCP2517FD Click CAN Receive Channel Configure. More... | |
union | mcp2517fd_fifo_user_cfg_t |
MCP2517FD Click FIFO User Address Register. More... | |
struct | mcp2517fd_tef_cfg_t |
MCP2517FD Click CAN Transmit Event FIFO Configure. More... | |
union | mcp2517fd_nbt_cfg_t |
MCP2517FD Click Nominal Bit Time Configuration Register. More... | |
union | mcp2517fd_dbt_cfg_t |
MCP2517FD Click Data Bit Time Configuration Register. More... | |
union | mcp2517fd_tdc_cfg_t |
MCP2517FD Click Transmitter Delay Compensation Register. More... | |
union | mcp2517fd_ts_cfg_t |
MCP2517FD Click Time Stamp Configuration Register. More... | |
struct | mcp2517fd_int_en_t |
MCP2517FD Click Interrupt Enables. More... | |
union | mcp2517fd_int_cfg_t |
MCP2517FD Click Interrupt Configuration. More... | |
union | mcp2517fd_int_vec_t |
MCP2517FD Click Interrupt Vector Register. More... | |
struct | mcp2517fd_int_flags_stat_t |
MCP2517FD Click Interrupt Flags. More... | |
union | mcp2517fd_int_flag_t |
MCP2517FD Click Interrupt Flag Register. More... | |
union | mcp2517fd_int_t |
MCP2517FD Click Interrupt Register. More... | |
union | mcp2517fd_trec_t |
MCP2517FD Click Transmit/Receive Error Count Register. More... | |
union | mcp2517fd_tef_t |
MCP2517FD Click Transmit Event FIFO Status Register. More... | |
union | mcp2517fd_tx_que_stat_t |
MCP2517FD Click Transmit Queue Status Register. More... | |
union | mcp2517fd_fifo_stat_t |
MCP2517FD Click FIFO Status Register. More... | |
union | mcp2517fd_crc_t |
MCP2517FD Click CRC Regsiter. More... | |
union | mcp2517fd_ecc_sta_t |
MCP2517FD Click ECC Status Register. More... | |
struct | mcp2517fd_osc_sta_t |
MCP2517FD Click Oscillator Status. More... | |
struct | mcp2517fd_bus_diag_flags_t |
MCP2517FD Click CAN Bus Diagnostic flags. More... | |
struct | mcp2517fd_bus_error_count_t |
MCP2517FD Click CAN Bus Diagnostic Error Counts. More... | |
union | mcp2517fd_bus_diag_t |
MCP2517FD Click CAN BUS DIAGNOSTICS. More... | |
union | mcp2517fd_bus_diag0_t |
MCP2517FD Click Diagnostic register 0. More... | |
union | mcp2517fd_bus_diag1_t |
MCP2517FD Click Diagnostic register 1. More... | |
struct | mcp2517fd_func_data_t |
MCP2517FD Click CAN message configuration. More... | |
struct | mcp2517fd_data_t |
MCP2517FD Click CAN message configuration. More... | |
struct | mcp2517fd_t |
MCP2517FD Click context object. More... | |
struct | mcp2517fd_cfg_t |
MCP2517FD Click configuration object. More... | |
Typedefs | |
typedef uint8_t | mcp2517fd_id_t |
MCP2517FD Click Module ID. | |
typedef uint32_t | mcp2517fd_msg_time_stamp_t |
MCP2517FD Click CAN Message Time Stamp. | |
Enumerations | |
enum | mcp2517fd_return_value_t { MCP2517FD_OK = 0 , MCP2517FD_ERROR = -1 } |
MCP2517FD Click return value data. More... | |
Functions | |
void | mcp2517fd_cfg_setup (mcp2517fd_cfg_t *cfg) |
MCP2517FD configuration object setup function. | |
err_t | mcp2517fd_init (mcp2517fd_t *ctx, mcp2517fd_cfg_t *cfg) |
MCP2517FD initialization function. | |
err_t | mcp2517fd_default_cfg (mcp2517fd_t *ctx) |
MCP2517FD default configuration function. | |
err_t | mcp2517fd_generic_write (mcp2517fd_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
MCP2517FD data writing function. | |
err_t | mcp2517fd_generic_read (mcp2517fd_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
MCP2517FD data reading function. | |
err_t | mcp2517fd_transmit_message (mcp2517fd_t *ctx, uint8_t *data_in, uint16_t data_len) |
Message Transmit function. | |
err_t | mcp2517fd_receive_message (mcp2517fd_t *ctx, uint8_t *data_out, uint16_t *data_len) |
Message Receive function. | |
err_t | mcp2517fd_reset (mcp2517fd_t *ctx) |
Reset function. | |
err_t | mcp2517fd_read_byte (mcp2517fd_t *ctx, uint16_t address, uint8_t *data_out) |
SPI Read Byte function. | |
err_t | mcp2517fd_write_byte (mcp2517fd_t *ctx, uint16_t address, uint8_t data_in) |
SPI Write Byte. | |
err_t | mcp2517fd_read_word (mcp2517fd_t *ctx, uint16_t address, uint32_t *data_out) |
SPI Read Word. | |
err_t | mcp2517fd_write_word (mcp2517fd_t *ctx, uint16_t address, uint32_t data_in) |
SPI Write Word. | |
err_t | mcp2517fd_read_half_word (mcp2517fd_t *ctx, uint16_t address, uint16_t *data_out) |
SPI Read Half Word. | |
err_t | mcp2517fd_write_half_word (mcp2517fd_t *ctx, uint16_t address, uint16_t data_in) |
SPI Write Half Word. | |
err_t | mcp2517fd_write_byte_safe (mcp2517fd_t *ctx, uint16_t address, uint8_t data_in) |
SPI SFR Write Byte Safe. | |
err_t | mcp2517fd_write_word_safe (mcp2517fd_t *ctx, uint16_t address, uint32_t data_in) |
SPI RAM Write Word Safe. | |
err_t | mcp2517fd_read_byte_array (mcp2517fd_t *ctx, uint16_t address, uint8_t *data_out, uint16_t n_bytes) |
SPI Read Byte Array. | |
err_t | mcp2517fd_read_byte_array_with_crc (mcp2517fd_t *ctx, bool from_ram, bool *crc_is_correct) |
SPI Read Byte Array with CRC. | |
err_t | mcp2517fd_write_byte_array (mcp2517fd_t *ctx, uint16_t address, uint8_t *data_in, uint16_t n_bytes) |
SPI Write Byte Array. | |
err_t | mcp2517fd_write_byte_array_with_crc (mcp2517fd_t *ctx, bool from_ram) |
SPI Write Byte Array with CRC. | |
err_t | mcp2517fd_read_word_array (mcp2517fd_t *ctx, uint16_t address, uint32_t *data_out, uint16_t n_words) |
SPI Read Word Array. | |
err_t | mcp2517fd_write_word_array (mcp2517fd_t *ctx, uint16_t address, uint32_t *data_in, uint16_t n_words) |
SPI Write Word Array. | |
err_t | mcp2517fd_configure (mcp2517fd_t *ctx, mcp2517fd_can_cfg_t *config) |
CAN Control register configuration. | |
void | mcp2517fd_configure_object_reset (mcp2517fd_can_cfg_t *config) |
Reset Configure object to reset values. | |
err_t | mcp2517fd_operation_mode_select (mcp2517fd_t *ctx, uint8_t op_mode) |
Select Operation Mode. | |
err_t | mcp2517fd_operation_mode_get (mcp2517fd_t *ctx) |
Get Operation Mode. | |
err_t | mcp2517fd_transmit_channel_configure (mcp2517fd_t *ctx, uint8_t channel, mcp2517fd_tx_fifo_cfg_t *config) |
Configure Transmit FIFO. | |
void | mcp2517fd_transmit_channel_configure_object_reset (mcp2517fd_tx_fifo_cfg_t *config) |
Reset Transmit Channel Configure object to reset values. | |
err_t | mcp2517fd_transmit_queue_configure (mcp2517fd_t *ctx, mcp2517fd_tx_que_cfg_t *config) |
Configure Transmit Queue. | |
void | mcp2517fd_transmit_queue_configure_object_reset (mcp2517fd_tx_que_cfg_t *config) |
Reset Transmit Queue Configure object to reset values. | |
err_t | mcp2517fd_transmit_channel_load (mcp2517fd_t *ctx, uint8_t channel, mcp2517fd_tx_msg_obj_t *tx_obj, bool flush) |
TX Channel Load. | |
err_t | mcp2517fd_transmit_channel_flush (mcp2517fd_t *ctx, uint8_t channel) |
TX Channel Flush. | |
err_t | mcp2517fd_transmit_channel_status_get (mcp2517fd_t *ctx, uint8_t channel, uint16_t *status) |
Transmit Channel Status Get. | |
err_t | mcp2517fd_transmit_channel_reset (mcp2517fd_t *ctx, uint8_t channel) |
Transmit FIFO Reset. | |
err_t | mcp2517fd_transmit_channel_update (mcp2517fd_t *ctx, uint8_t channel, bool flush) |
Transmit FIFO Update. | |
err_t | mcp2517fd_transmit_request_set (mcp2517fd_t *ctx, uint32_t tx_req) |
Request transmissions using TXREQ register. | |
err_t | mcp2517fd_transmit_request_get (mcp2517fd_t *ctx, uint32_t *tx_req) |
Get TXREQ register. | |
err_t | mcp2517fd_transmit_channel_abort (mcp2517fd_t *ctx, uint8_t channel) |
Abort transmission of single FIFO. | |
err_t | mcp2517fd_transmit_abort_all (mcp2517fd_t *ctx) |
Abort All transmissions. | |
err_t | mcp2517fd_transmit_band_width_sharing_set (mcp2517fd_t *ctx, uint8_t tx_bws) |
Set Transmit Bandwidth Sharing Delay. | |
err_t | mcp2517fd_filter_object_configure (mcp2517fd_t *ctx, uint8_t filter, mcp2517fd_filt_obj_id_t *id) |
Filter Object Configuration. | |
err_t | mcp2517fd_filter_mask_configure (mcp2517fd_t *ctx, uint8_t filter, mcp2517fd_mask_obj_id_t *mask) |
Filter Mask Configuration. | |
err_t | mcp2517fd_filter_to_fifo_link (mcp2517fd_t *ctx, uint8_t filter, uint8_t channel, bool enable) |
Link Filter to FIFO. | |
err_t | mcp2517fd_filter_enable (mcp2517fd_t *ctx, uint8_t filter) |
Filter Enable. | |
err_t | mcp2517fd_filter_disable (mcp2517fd_t *ctx, uint8_t filter) |
Filter Disable. | |
err_t | mcp2517fd_device_net_filter_count_set (mcp2517fd_t *ctx, uint8_t dnfc) |
Set Device Net Filter Count. | |
err_t | mcp2517fd_receive_channel_configure (mcp2517fd_t *ctx, uint8_t channel, mcp2517fd_rx_fifo_cfg_t *config) |
Configure Receive FIFO. | |
void | mcp2517fd_receive_channel_configure_object_reset (mcp2517fd_rx_fifo_cfg_t *config) |
Reset Receive Channel Configure object to reset value. | |
err_t | mcp2517fd_receive_channel_status_get (mcp2517fd_t *ctx, uint8_t channel, uint8_t *status) |
Receive Channel Status Get. | |
err_t | mcp2517fd_receive_message_get (mcp2517fd_t *ctx, uint8_t channel, mcp2517fd_rx_msg_obj_t *rx_obj) |
Get Received Message. | |
err_t | mcp2517fd_receive_channel_reset (mcp2517fd_t *ctx, uint8_t channel) |
Receive FIFO Reset. | |
err_t | mcp2517fd_receive_channel_update (mcp2517fd_t *ctx, uint8_t channel) |
Receive FIFO Update. | |
err_t | mcp2517fd_tef_status_get (mcp2517fd_t *ctx, uint8_t *status) |
Transmit Event FIFO Status Get. | |
err_t | mcp2517fd_tef_message_get (mcp2517fd_t *ctx, mcp2517fd_tef_msg_obj_t *tef_obj) |
Get Transmit Event FIFO Message. | |
err_t | mcp2517fd_tef_reset (mcp2517fd_t *ctx) |
Transmit Event FIFO Reset. | |
err_t | mcp2517fd_tef_update (mcp2517fd_t *ctx) |
Transmit Event FIFO Update. | |
err_t | mcp2517fd_tef_configure (mcp2517fd_t *ctx, mcp2517fd_tef_cfg_t *config) |
Configure Transmit Event FIFO. | |
void | mcp2517fd_tef_configure_object_reset (mcp2517fd_tef_cfg_t *config) |
Reset TefConfigure object to reset value. | |
err_t | mcp2517fd_module_event_get (mcp2517fd_t *ctx, uint16_t *flags) |
Module Event Get. | |
err_t | mcp2517fd_module_event_enable (mcp2517fd_t *ctx, uint16_t flags) |
Module Event Enable. | |
err_t | mcp2517fd_module_event_disable (mcp2517fd_t *ctx, uint16_t flags) |
Module Event Disable. | |
err_t | mcp2517fd_module_event_clear (mcp2517fd_t *ctx, uint16_t flags) |
Module Event Clear. | |
err_t | mcp2517fd_module_event_rx_code_get (mcp2517fd_t *ctx, uint8_t *rx_code) |
Get RX Code. | |
err_t | mcp2517fd_module_event_tx_code_get (mcp2517fd_t *ctx, uint8_t *tx_code) |
Get TX Code. | |
err_t | mcp2517fd_module_event_filter_hit_get (mcp2517fd_t *ctx, uint8_t *filter_hit) |
Get Filter Hit. | |
err_t | mcp2517fd_module_event_icode_get (mcp2517fd_t *ctx, uint8_t *icode) |
Get ICODE. | |
err_t | mcp2517fd_transmit_channel_event_get (mcp2517fd_t *ctx, uint8_t channel, uint8_t *flags) |
Transmit FIFO Event Get. | |
err_t | mcp2517fd_transmit_event_get (mcp2517fd_t *ctx, uint32_t *txif) |
Get pending interrupts of all transmit FIFOs. | |
err_t | mcp2517fd_transmit_event_attempt_get (mcp2517fd_t *ctx, uint32_t *txatif) |
Get pending TXATIF of all transmit FIFOs. | |
err_t | mcp2517fd_transmit_channel_index_get (mcp2517fd_t *ctx, uint8_t channel, uint8_t *idx) |
Transmit FIFO Index Get. | |
err_t | mcp2517fd_transmit_channel_event_enable (mcp2517fd_t *ctx, uint8_t channel, uint8_t flags) |
Transmit FIFO Event Enable. | |
err_t | mcp2517fd_transmit_channel_event_disable (mcp2517fd_t *ctx, uint8_t channel, uint8_t flags) |
Transmit FIFO Event Disable. | |
err_t | mcp2517fd_transmit_channel_event_attempt_clear (mcp2517fd_t *ctx, uint8_t channel) |
Transmit FIFO Event Clear. | |
err_t | mcp2517fd_receive_channel_event_get (mcp2517fd_t *ctx, uint8_t channel, uint8_t *flags) |
Receive FIFO Event Get. | |
err_t | mcp2517fd_receive_event_get (mcp2517fd_t *ctx, uint32_t *rxif) |
Get pending interrupts of all receive FIFOs. | |
err_t | mcp2517fd_receive_event_overflow_get (mcp2517fd_t *ctx, uint32_t *rxovif) |
Get pending RXOVIF of all receive FIFOs. | |
err_t | mcp2517fd_receive_channel_index_get (mcp2517fd_t *ctx, uint8_t channel, uint8_t *idx) |
Receive FIFO Index Get. | |
err_t | mcp2517fd_receive_channel_event_enable (mcp2517fd_t *ctx, uint8_t channel, uint8_t flags) |
Receive FIFO Event Enable. | |
err_t | mcp2517fd_receive_channel_event_disable (mcp2517fd_t *ctx, uint8_t channel, uint8_t flags) |
Receive FIFO Event Disable. | |
err_t | mcp2517fd_receive_channel_event_overflow_clear (mcp2517fd_t *ctx, uint8_t channel) |
Receive FIFO Event Clear. | |
err_t | mcp2517fd_tef_event_get (mcp2517fd_t *ctx, uint8_t *flags) |
Transmit Event FIFO Event Get. | |
err_t | mcp2517fd_tef_event_enable (mcp2517fd_t *ctx, uint8_t flags) |
Transmit Event FIFO Event Enable. | |
err_t | mcp2517fd_tef_event_disable (mcp2517fd_t *ctx, uint8_t flags) |
Transmit Event FIFO Event Disable. | |
err_t | mcp2517fd_tef_event_overflow_clear (mcp2517fd_t *ctx) |
Transmit Event FIFO Event Clear. | |
err_t | mcp2517fd_error_count_transmit_get (mcp2517fd_t *ctx, uint8_t *tec) |
Transmit Error Count Get. | |
err_t | mcp2517fd_error_count_receive_get (mcp2517fd_t *ctx, uint8_t *rec) |
Receive Error Count Get. | |
err_t | mcp2517fd_error_state_get (mcp2517fd_t *ctx, uint8_t *flags) |
Error State Get. | |
err_t | mcp2517fd_error_count_state_get (mcp2517fd_t *ctx, uint8_t *tec, uint8_t *rec, uint8_t *flags) |
Error Counts and Error State Get. | |
err_t | mcp2517fd_bus_diagnostics_get (mcp2517fd_t *ctx, mcp2517fd_bus_diag_t *bus_diag) |
Get Bus Diagnostic Registers: all data_ at once, since we want to keep them in synch. | |
err_t | mcp2517fd_bus_diagnostics_clear (mcp2517fd_t *ctx) |
Clear Bus Diagnostic Registers. | |
err_t | mcp2517fd_ecc_enable (mcp2517fd_t *ctx) |
Enable ECC. | |
err_t | mcp2517fd_ecc_disable (mcp2517fd_t *ctx) |
Disable ECC. | |
err_t | mcp2517fd_ecc_event_get (mcp2517fd_t *ctx, uint8_t *flags) |
ECC Event Get. | |
err_t | mcp2517fd_ecc_parity_set (mcp2517fd_t *ctx, uint8_t parity) |
Set ECC Parity. | |
err_t | mcp2517fd_ecc_parity_get (mcp2517fd_t *ctx, uint8_t *parity) |
Get ECC Parity. | |
err_t | mcp2517fd_ecc_error_address_get (mcp2517fd_t *ctx, uint16_t *address) |
Get ECC Error Address. | |
err_t | mcp2517fd_ecc_event_enable (mcp2517fd_t *ctx, uint8_t flags) |
ECC Event Enable. | |
err_t | mcp2517fd_ecc_event_disable (mcp2517fd_t *ctx, uint8_t flags) |
ECC Event Disable. | |
err_t | mcp2517fd_ecc_event_clear (mcp2517fd_t *ctx, uint8_t flags) |
ECC Event Clear. | |
err_t | mcp2517fd_crc_event_enable (mcp2517fd_t *ctx, uint8_t flags) |
CRC Event Enable. | |
err_t | mcp2517fd_crc_event_disable (mcp2517fd_t *ctx, uint8_t flags) |
CRC Event Disnable. | |
err_t | mcp2517fd_crc_event_clear (mcp2517fd_t *ctx, uint8_t flags) |
CRC Event Clear. | |
err_t | mcp2517fd_crc_event_get (mcp2517fd_t *ctx, uint8_t *flags) |
CRC Event Get. | |
err_t | mcp2517fd_crc_value_get (mcp2517fd_t *ctx, uint16_t *crc) |
Get CRC Value from device. | |
err_t | mcp2517fd_ram_init (mcp2517fd_t *ctx, uint8_t rx_data) |
Initialize RAM. | |
err_t | mcp2517fd_time_stamp_enable (mcp2517fd_t *ctx) |
Time Stamp Enable. | |
err_t | mcp2517fd_time_stamp_disable (mcp2517fd_t *ctx) |
Time Stamp Disable. | |
err_t | mcp2517fd_time_stamp_get (mcp2517fd_t *ctx, uint32_t *time_stamp) |
Time Stamp Get. | |
err_t | mcp2517fd_time_stamp_set (mcp2517fd_t *ctx, uint32_t ts) |
Time Stamp Set. | |
err_t | mcp2517fd_time_stamp_mode_configure (mcp2517fd_t *ctx, uint8_t mode) |
Time Stamp Mode Configure. | |
err_t | mcp2517fd_time_stamp_prescaler_set (mcp2517fd_t *ctx, uint16_t time_stamp) |
Time Stamp Prescaler Set. | |
err_t | mcp2517fd_oscillator_enable (mcp2517fd_t *ctx) |
Enable oscillator to wake-up from sleep. | |
err_t | mcp2517fd_oscillator_control_set (mcp2517fd_t *ctx, mcp2517fd_div_ctl_t ctrl) |
Set Oscillator Control. | |
void | mcp2517fd_oscillator_control_object_reset (mcp2517fd_div_ctl_t *ctrl) |
Reset Oscillator Control. | |
err_t | mcp2517fd_oscillator_status_get (mcp2517fd_t *ctx, mcp2517fd_osc_sta_t *status) |
Get Oscillator Status. | |
err_t | mcp2517fd_bit_time_configure (mcp2517fd_t *ctx, uint8_t bit_time, uint8_t clk) |
Configure Bit Time registers (based on CAN clock speed). | |
err_t | mcp2517fd_bit_time_configure_nominal_40_mhz (mcp2517fd_t *ctx, uint8_t bit_time) |
Configure Nominal bit time for 40MHz system clock. | |
err_t | mcp2517fd_bit_time_configure_data_40_mhz (mcp2517fd_t *ctx, uint8_t bit_time) |
Configure Data bit time for 40MHz system clock. | |
err_t | mcp2517fd_bit_time_configure_nominal_20_mhz (mcp2517fd_t *ctx, uint8_t bit_time) |
Configure Nominal bit time for 20MHz system clock. | |
err_t | mcp2517fd_bit_time_configure_data_20_mhz (mcp2517fd_t *ctx, uint8_t bit_time) |
Configure Nominal bit time for 20MHz system clock. | |
err_t | mcp2517fd_bit_time_configure_nominal_10_mhz (mcp2517fd_t *ctx, uint8_t bit_time) |
Configure Nominal bit time for 10MHz system clock. | |
err_t | mcp2517fd_bit_time_configure_data_10_mhz (mcp2517fd_t *ctx, uint8_t bit_time) |
Configure Data bit time for 10MHz system clock. | |
err_t | mcp2517fd_gpio_mode_configure (mcp2517fd_t *ctx, uint8_t gpio0, uint8_t gpio1) |
Initialize GPIO Mode. | |
err_t | mcp2517fd_gpio_direction_configure (mcp2517fd_t *ctx, uint8_t gpio0, uint8_t gpio1) |
Initialize GPIO Direction. | |
err_t | mcp2517fd_gpio_standby_control_enable (mcp2517fd_t *ctx) |
Enable Transceiver Standby Control. | |
err_t | mcp2517fd_gpio_standby_control_disable (mcp2517fd_t *ctx) |
Disable Transceiver Standby Control. | |
err_t | mcp2517fd_gpio_interrupt_pins_open_drain_configure (mcp2517fd_t *ctx, uint8_t mode) |
Configure Open Drain Interrupts. | |
err_t | mcp2517fd_gpio_transmit_pin_open_drain_configure (mcp2517fd_t *ctx, uint8_t mode) |
Configure Open Drain TXCAN. | |
err_t | mcp2517fd_gpio_pin_set (mcp2517fd_t *ctx, uint8_t pos, uint8_t latch) |
GPIO Output Pin Set. | |
err_t | mcp2517fd_gpio_pin_read (mcp2517fd_t *ctx, uint8_t pos, uint8_t *state) |
Input Pin Read. | |
err_t | mcp2517fd_gpio_clock_output_configure (mcp2517fd_t *ctx, uint8_t mode) |
Configure CLKO Pin. | |
uint32_t | mcp2517fd_dlc_to_data_bytes (uint8_t dlc) |
DLC to number of actual data_bytes conversion. | |
err_t | mcp2517fd_fifo_index_get (mcp2517fd_t *ctx, uint8_t channel, uint8_t *data_out) |
FIFO Index Get. | |
uint16_t | mcp2517fd_calculate_crc16 (uint8_t *data_pointer, uint16_t size) |
Calculate CRC16. | |
uint8_t | mcp2517fd_data_bytes_to_dlc (uint8_t num) |
Data bytes to DLC conversion. | |
This file contains API for MCP2517FD Click Driver.
typedef uint8_t mcp2517fd_id_t |
MCP2517FD Click Module ID.
Module ID definition of MCP2517FD Click driver.
typedef uint32_t mcp2517fd_msg_time_stamp_t |
MCP2517FD Click CAN Message Time Stamp.
CAN Message Time Stamp definition of MCP2517FD Click driver.