mcp251863 2.0.0.0
|
This file contains API for MCP251863 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 | mcp251863_can_cfg_t |
MCP251863 Click CAN Configure. More... | |
struct | mcp251863_config_t |
MCP251863 Click CAN Message Configuration. More... | |
struct | mcp251863_msg_obj_id_t |
MCP251863 Click CAN Message Object ID. More... | |
struct | mcp251863_tx_msg_obj_ctl_t |
MCP251863 Click CAN TX Message Object Control. More... | |
union | mcp251863_tx_msg_obj_t |
MCP251863 Click CAN TX Message Object. More... | |
struct | mcp251863_rx_msg_obj_ctl_t |
MCP251863 Click CAN RX Message Object Control. More... | |
union | mcp251863_rx_msg_obj_t |
MCP251863 Click CAN RX Message Object. More... | |
union | mcp251863_tef_msg_obj_t |
MCP251863 Click CAN TEF Message Object. More... | |
struct | mcp251863_filt_obj_id_t |
MCP251863 Click CAN Filter Object ID. More... | |
union | mcp251863_filt_obj_t |
MCP251863 Click Filter Object Register. More... | |
struct | mcp251863_mask_obj_id_t |
MCP251863 Click CAN Mask Object ID. More... | |
union | mcp251863_mask_obj_t |
MCP251863 Click Mask Object Register. More... | |
union | mcp251863_reg_t |
union | mcp251863_ctl_t |
MCP251863 Click CAN Control Register. More... | |
union | mcp251863_tx_que_ctl_t |
MCP251863 Click Transmit Queue Control Register. More... | |
union | mcp251863_tef_ctl_t |
MCP251863 Click Transmit Event FIFO Control Register. More... | |
union | mcp251863_fifo_ctl_t |
MCP251863 Click FIFO Control Register. More... | |
union | mcp251863_filt_ctl_t |
MCP251863 Click Filter Control Register. More... | |
union | mcp251863_osc_ctl_t |
MCP251863 Click Oscillator Control Register. More... | |
struct | mcp251863_div_ctl_t |
MCP251863 Click Oscillator Control. More... | |
union | mcp251863_io_ctl_t |
MCP251863 Click I/O Control Register. More... | |
union | mcp251863_ecc_ctl_t |
MCP251863 Click ECC Control Register. More... | |
struct | T_MCP251863_cfg_t |
MCP251863 Click CAN Configure. More... | |
struct | mcp251863_tx_fifo_cfg_t |
MCP251863 Click CAN Transmit Channel Configure. More... | |
struct | mcp251863_tx_que_cfg_t |
MCP251863 Click CAN Transmit Queue Configure. More... | |
struct | mcp251863_rx_fifo_cfg_t |
MCP251863 Click CAN Receive Channel Configure. More... | |
union | mcp251863_fifo_user_cfg_t |
MCP251863 Click FIFO User Address Register. More... | |
struct | mcp251863_tef_cfg_t |
MCP251863 Click CAN Transmit Event FIFO Configure. More... | |
union | mcp251863_nbt_cfg_t |
MCP251863 Click Nominal Bit Time Configuration Register. More... | |
union | mcp251863_dbt_cfg_t |
MCP251863 Click Data Bit Time Configuration Register. More... | |
union | mcp251863_tdc_cfg_t |
MCP251863 Click Transmitter Delay Compensation Register. More... | |
union | mcp251863_ts_cfg_t |
MCP251863 Click Time Stamp Configuration Register. More... | |
struct | mcp251863_int_en_t |
MCP251863 Click Interrupt Enables. More... | |
union | mcp251863_int_cfg_t |
MCP251863 Click Interrupt Configuration. More... | |
union | mcp251863_int_vec_t |
MCP251863 Click Interrupt Vector Register. More... | |
struct | mcp251863_int_flags_stat_t |
MCP251863 Click Interrupt Flags. More... | |
union | mcp251863_int_flag_t |
MCP251863 Click Interrupt Flag Register. More... | |
union | mcp251863_int_t |
MCP251863 Click Interrupt Register. More... | |
union | mcp251863_trec_t |
MCP251863 Click Transmit/Receive Error Count Register. More... | |
union | mcp251863_tef_t |
MCP251863 Click Transmit Event FIFO Status Register. More... | |
union | mcp251863_tx_que_stat_t |
MCP251863 Click Transmit Queue Status Register. More... | |
union | mcp251863_fifo_stat_t |
MCP251863 Click FIFO Status Register. More... | |
union | mcp251863_crc_t |
MCP251863 Click CRC Regsiter. More... | |
union | mcp251863_ecc_sta_t |
MCP251863 Click ECC Status Register. More... | |
struct | mcp251863_osc_sta_t |
MCP251863 Click Oscillator Status. More... | |
struct | mcp251863_bus_diag_flags_t |
MCP251863 Click CAN Bus Diagnostic flags. More... | |
struct | mcp251863_bus_error_count_t |
MCP251863 Click CAN Bus Diagnostic Error Counts. More... | |
union | mcp251863_bus_diag_t |
MCP251863 Click CAN BUS DIAGNOSTICS. More... | |
union | mcp251863_bus_diag0_t |
MCP251863 Click Diagnostic register 0. More... | |
union | mcp251863_bus_diag1_t |
MCP251863 Click Diagnostic register 1. More... | |
struct | mcp251863_func_data_t |
MCP251863 Click CAN message configuration. More... | |
struct | mcp251863_data_t |
MCP251863 Click CAN message configuration. More... | |
struct | mcp251863_t |
MCP251863 Click context object. More... | |
struct | mcp251863_cfg_t |
MCP251863 Click configuration object. More... | |
Typedefs | |
typedef uint8_t | mcp251863_id_t |
MCP251863 Click Module ID. | |
typedef uint32_t | mcp251863_msg_time_stamp_t |
MCP251863 Click CAN Message Time Stamp. | |
Enumerations | |
enum | mcp251863_return_value_t { MCP251863_OK = 0 , MCP251863_ERROR = -1 } |
MCP251863 Click return value data. More... | |
Functions | |
void | mcp251863_cfg_setup (mcp251863_cfg_t *cfg) |
MCP251863 configuration object setup function. | |
err_t | mcp251863_init (mcp251863_t *ctx, mcp251863_cfg_t *cfg) |
MCP251863 initialization function. | |
err_t | mcp251863_default_cfg (mcp251863_t *ctx) |
MCP251863 default configuration function. | |
err_t | mcp251863_generic_write (mcp251863_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
MCP251863 data writing function. | |
err_t | mcp251863_generic_read (mcp251863_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
MCP251863 data reading function. | |
err_t | mcp251863_transmit_message (mcp251863_t *ctx, uint8_t *data_in, uint16_t data_len) |
Message Transmit function. | |
err_t | mcp251863_receive_message (mcp251863_t *ctx, uint8_t *data_out, uint16_t *data_len) |
Message Receive function. | |
err_t | mcp251863_reset (mcp251863_t *ctx) |
Reset function. | |
err_t | mcp251863_read_byte (mcp251863_t *ctx, uint16_t address, uint8_t *data_out) |
SPI Read Byte function. | |
err_t | mcp251863_write_byte (mcp251863_t *ctx, uint16_t address, uint8_t data_in) |
SPI Write Byte. | |
err_t | mcp251863_read_word (mcp251863_t *ctx, uint16_t address, uint32_t *data_out) |
SPI Read Word. | |
err_t | mcp251863_write_word (mcp251863_t *ctx, uint16_t address, uint32_t data_in) |
SPI Write Word. | |
err_t | mcp251863_read_half_word (mcp251863_t *ctx, uint16_t address, uint16_t *data_out) |
SPI Read Half Word. | |
err_t | mcp251863_write_half_word (mcp251863_t *ctx, uint16_t address, uint16_t data_in) |
SPI Write Half Word. | |
err_t | mcp251863_write_byte_safe (mcp251863_t *ctx, uint16_t address, uint8_t data_in) |
SPI SFR Write Byte Safe. | |
err_t | mcp251863_write_word_safe (mcp251863_t *ctx, uint16_t address, uint32_t data_in) |
SPI RAM Write Word Safe. | |
err_t | mcp251863_read_byte_array (mcp251863_t *ctx, uint16_t address, uint8_t *data_out, uint16_t n_bytes) |
SPI Read Byte Array. | |
err_t | mcp251863_read_byte_array_with_crc (mcp251863_t *ctx, bool from_ram, bool *crc_is_correct) |
SPI Read Byte Array with CRC. | |
err_t | mcp251863_write_byte_array (mcp251863_t *ctx, uint16_t address, uint8_t *data_in, uint16_t n_bytes) |
SPI Write Byte Array. | |
err_t | mcp251863_write_byte_array_with_crc (mcp251863_t *ctx, bool from_ram) |
SPI Write Byte Array with CRC. | |
err_t | mcp251863_read_word_array (mcp251863_t *ctx, uint16_t address, uint32_t *data_out, uint16_t n_words) |
SPI Read Word Array. | |
err_t | mcp251863_write_word_array (mcp251863_t *ctx, uint16_t address, uint32_t *data_in, uint16_t n_words) |
SPI Write Word Array. | |
err_t | mcp251863_configure (mcp251863_t *ctx, mcp251863_can_cfg_t *config) |
CAN Control register configuration. | |
void | mcp251863_configure_object_reset (mcp251863_can_cfg_t *config) |
Reset Configure object to reset values. | |
err_t | mcp251863_operation_mode_select (mcp251863_t *ctx, uint8_t op_mode) |
Select Operation Mode. | |
err_t | mcp251863_operation_mode_get (mcp251863_t *ctx) |
Get Operation Mode. | |
err_t | mcp251863_transmit_channel_configure (mcp251863_t *ctx, uint8_t channel, mcp251863_tx_fifo_cfg_t *config) |
Configure Transmit FIFO. | |
void | mcp251863_transmit_channel_configure_object_reset (mcp251863_tx_fifo_cfg_t *config) |
Reset Transmit Channel Configure object to reset values. | |
err_t | mcp251863_transmit_queue_configure (mcp251863_t *ctx, mcp251863_tx_que_cfg_t *config) |
Configure Transmit Queue. | |
void | mcp251863_transmit_queue_configure_object_reset (mcp251863_tx_que_cfg_t *config) |
Reset Transmit Queue Configure object to reset values. | |
err_t | mcp251863_transmit_channel_load (mcp251863_t *ctx, uint8_t channel, mcp251863_tx_msg_obj_t *tx_obj, bool flush) |
TX Channel Load. | |
err_t | mcp251863_transmit_channel_flush (mcp251863_t *ctx, uint8_t channel) |
TX Channel Flush. | |
err_t | mcp251863_transmit_channel_status_get (mcp251863_t *ctx, uint8_t channel, uint16_t *status) |
Transmit Channel Status Get. | |
int8_t | mcp251863_transmit_channel_reset (mcp251863_t *ctx, uint8_t channel) |
Transmit FIFO Reset. | |
err_t | mcp251863_transmit_channel_update (mcp251863_t *ctx, uint8_t channel, bool flush) |
Transmit FIFO Update. | |
err_t | mcp251863_transmit_request_set (mcp251863_t *ctx, uint32_t tx_req) |
Request transmissions using TXREQ register. | |
err_t | mcp251863_transmit_request_get (mcp251863_t *ctx, uint32_t *tx_req) |
Get TXREQ register. | |
err_t | mcp251863_transmit_channel_abort (mcp251863_t *ctx, uint8_t channel) |
Abort transmission of single FIFO. | |
err_t | mcp251863_transmit_abort_all (mcp251863_t *ctx) |
Abort All transmissions. | |
err_t | mcp251863_transmit_band_width_sharing_set (mcp251863_t *ctx, uint8_t tx_bws) |
Set Transmit Bandwidth Sharing Delay. | |
err_t | mcp251863_filter_object_configure (mcp251863_t *ctx, uint8_t filter, mcp251863_filt_obj_id_t *id) |
Filter Object Configuration. | |
err_t | mcp251863_filter_mask_configure (mcp251863_t *ctx, uint8_t filter, mcp251863_mask_obj_id_t *mask) |
Filter Mask Configuration. | |
err_t | mcp251863_filter_to_fifo_link (mcp251863_t *ctx, uint8_t filter, uint8_t channel, bool enable) |
Link Filter to FIFO. | |
err_t | mcp251863_filter_enable (mcp251863_t *ctx, uint8_t filter) |
Filter Enable. | |
err_t | mcp251863_filter_disable (mcp251863_t *ctx, uint8_t filter) |
Filter Disable. | |
err_t | mcp251863_device_net_filter_count_set (mcp251863_t *ctx, uint8_t dnfc) |
Set Device Net Filter Count. | |
err_t | mcp251863_receive_channel_configure (mcp251863_t *ctx, uint8_t channel, mcp251863_rx_fifo_cfg_t *config) |
Configure Receive FIFO. | |
void | mcp251863_receive_channel_configure_object_reset (mcp251863_rx_fifo_cfg_t *config) |
Reset Receive Channel Configure object to reset value. | |
err_t | mcp251863_receive_channel_status_get (mcp251863_t *ctx, uint8_t channel, uint8_t *status) |
Receive Channel Status Get. | |
err_t | mcp251863_receive_message_get (mcp251863_t *ctx, uint8_t channel, mcp251863_rx_msg_obj_t *rx_obj) |
Get Received Message. | |
err_t | mcp251863_receive_channel_reset (mcp251863_t *ctx, uint8_t channel) |
Receive FIFO Reset. | |
err_t | mcp251863_receive_channel_update (mcp251863_t *ctx, uint8_t channel) |
Receive FIFO Update. | |
err_t | mcp251863_tef_status_get (mcp251863_t *ctx, uint8_t *status) |
Transmit Event FIFO Status Get. | |
err_t | mcp251863_tef_message_get (mcp251863_t *ctx, mcp251863_tef_msg_obj_t *tef_obj) |
Get Transmit Event FIFO Message. | |
err_t | mcp251863_tef_reset (mcp251863_t *ctx) |
Transmit Event FIFO Reset. | |
err_t | mcp251863_tef_update (mcp251863_t *ctx) |
Transmit Event FIFO Update. | |
err_t | mcp251863_tef_configure (mcp251863_t *ctx, mcp251863_tef_cfg_t *config) |
Configure Transmit Event FIFO. | |
void | mcp251863_tef_configure_object_reset (mcp251863_tef_cfg_t *config) |
Reset TefConfigure object to reset value. | |
err_t | mcp251863_module_event_get (mcp251863_t *ctx, uint16_t *flags) |
Module Event Get. | |
err_t | mcp251863_module_event_enable (mcp251863_t *ctx, uint16_t flags) |
Module Event Enable. | |
err_t | mcp251863_module_event_disable (mcp251863_t *ctx, uint16_t flags) |
Module Event Disable. | |
err_t | mcp251863_module_event_clear (mcp251863_t *ctx, uint16_t flags) |
Module Event Clear. | |
err_t | mcp251863_module_event_rx_code_get (mcp251863_t *ctx, uint8_t *rx_code) |
Get RX Code. | |
err_t | mcp251863_module_event_tx_code_get (mcp251863_t *ctx, uint8_t *tx_code) |
Get TX Code. | |
err_t | mcp251863_module_event_filter_hit_get (mcp251863_t *ctx, uint8_t *filter_hit) |
Get Filter Hit. | |
err_t | mcp251863_module_event_icode_get (mcp251863_t *ctx, uint8_t *icode) |
Get ICODE. | |
err_t | mcp251863_transmit_channel_event_get (mcp251863_t *ctx, uint8_t channel, uint8_t *flags) |
Transmit FIFO Event Get. | |
err_t | mcp251863_transmit_event_get (mcp251863_t *ctx, uint32_t *txif) |
Get pending interrupts of all transmit FIFOs. | |
err_t | mcp251863_transmit_event_attempt_get (mcp251863_t *ctx, uint32_t *txatif) |
Get pending TXATIF of all transmit FIFOs. | |
err_t | mcp251863_transmit_channel_index_get (mcp251863_t *ctx, uint8_t channel, uint8_t *idx) |
Transmit FIFO Index Get. | |
err_t | mcp251863_transmit_channel_event_enable (mcp251863_t *ctx, uint8_t channel, uint8_t flags) |
Transmit FIFO Event Enable. | |
err_t | mcp251863_transmit_channel_event_disable (mcp251863_t *ctx, uint8_t channel, uint8_t flags) |
Transmit FIFO Event Disable. | |
err_t | mcp251863_transmit_channel_event_attempt_clear (mcp251863_t *ctx, uint8_t channel) |
Transmit FIFO Event Clear. | |
err_t | mcp251863_receive_channel_event_get (mcp251863_t *ctx, uint8_t channel, uint8_t *flags) |
Receive FIFO Event Get. | |
err_t | mcp251863_receive_event_get (mcp251863_t *ctx, uint32_t *rxif) |
Get pending interrupts of all receive FIFOs. | |
err_t | mcp251863_receive_event_overflow_get (mcp251863_t *ctx, uint32_t *rxovif) |
Get pending RXOVIF of all receive FIFOs. | |
int8_t | mcp251863_receive_channel_index_get (mcp251863_t *ctx, uint8_t channel, uint8_t *idx) |
Receive FIFO Index Get. | |
err_t | mcp251863_receive_channel_event_enable (mcp251863_t *ctx, uint8_t channel, uint8_t flags) |
Receive FIFO Event Enable. | |
err_t | mcp251863_receive_channel_event_disable (mcp251863_t *ctx, uint8_t channel, uint8_t flags) |
Receive FIFO Event Disable. | |
err_t | mcp251863_receive_channel_event_overflow_clear (mcp251863_t *ctx, uint8_t channel) |
Receive FIFO Event Clear. | |
err_t | mcp251863_tef_event_get (mcp251863_t *ctx, uint8_t *flags) |
Transmit Event FIFO Event Get. | |
err_t | mcp251863_tef_event_enable (mcp251863_t *ctx, uint8_t flags) |
Transmit Event FIFO Event Enable. | |
err_t | mcp251863_tef_event_disable (mcp251863_t *ctx, uint8_t flags) |
Transmit Event FIFO Event Disable. | |
err_t | mcp251863_tef_event_overflow_clear (mcp251863_t *ctx) |
Transmit Event FIFO Event Clear. | |
err_t | mcp251863_error_count_transmit_get (mcp251863_t *ctx, uint8_t *tec) |
Transmit Error Count Get. | |
err_t | mcp251863_error_count_receive_get (mcp251863_t *ctx, uint8_t *rec) |
Receive Error Count Get. | |
err_t | mcp251863_error_state_get (mcp251863_t *ctx, uint8_t *flags) |
Error State Get. | |
err_t | mcp251863_error_count_state_get (mcp251863_t *ctx, uint8_t *tec, uint8_t *rec, uint8_t *flags) |
Error Counts and Error State Get. | |
err_t | mcp251863_bus_diagnostics_get (mcp251863_t *ctx, mcp251863_bus_diag_t *bus_diag) |
Get Bus Diagnostic Registers: all data_ at once, since we want to keep them in synch. | |
err_t | mcp251863_bus_diagnostics_clear (mcp251863_t *ctx) |
Clear Bus Diagnostic Registers. | |
err_t | mcp251863_ecc_enable (mcp251863_t *ctx) |
Enable ECC. | |
err_t | mcp251863_ecc_disable (mcp251863_t *ctx) |
Disable ECC. | |
err_t | mcp251863_ecc_event_get (mcp251863_t *ctx, uint8_t *flags) |
ECC Event Get. | |
err_t | mcp251863_ecc_parity_set (mcp251863_t *ctx, uint8_t parity) |
Set ECC Parity. | |
err_t | mcp251863_ecc_parity_get (mcp251863_t *ctx, uint8_t *parity) |
Get ECC Parity. | |
err_t | mcp251863_ecc_error_address_get (mcp251863_t *ctx, uint16_t *address) |
Get ECC Error Address. | |
err_t | mcp251863_ecc_event_enable (mcp251863_t *ctx, uint8_t flags) |
ECC Event Enable. | |
err_t | mcp251863_ecc_event_disable (mcp251863_t *ctx, uint8_t flags) |
ECC Event Disable. | |
err_t | mcp251863_ecc_event_clear (mcp251863_t *ctx, uint8_t flags) |
ECC Event Clear. | |
err_t | mcp251863_crc_event_enable (mcp251863_t *ctx, uint8_t flags) |
CRC Event Enable. | |
err_t | mcp251863_crc_event_disable (mcp251863_t *ctx, uint8_t flags) |
CRC Event Disnable. | |
err_t | mcp251863_crc_event_clear (mcp251863_t *ctx, uint8_t flags) |
CRC Event Clear. | |
err_t | mcp251863_crc_event_get (mcp251863_t *ctx, uint8_t *flags) |
CRC Event Get. | |
err_t | mcp251863_crc_value_get (mcp251863_t *ctx, uint16_t *crc) |
Get CRC Value from device. | |
err_t | mcp251863_ram_init (mcp251863_t *ctx, uint8_t rx_data) |
Initialize RAM. | |
err_t | mcp251863_time_stamp_enable (mcp251863_t *ctx) |
Time Stamp Enable. | |
err_t | mcp251863_time_stamp_disable (mcp251863_t *ctx) |
Time Stamp Disable. | |
err_t | mcp251863_time_stamp_get (mcp251863_t *ctx, uint32_t *time_stamp) |
Time Stamp Get. | |
err_t | mcp251863_time_stamp_set (mcp251863_t *ctx, uint32_t ts) |
Time Stamp Set. | |
err_t | mcp251863_time_stamp_mode_configure (mcp251863_t *ctx, uint8_t mode) |
Time Stamp Mode Configure. | |
err_t | mcp251863_time_stamp_prescaler_set (mcp251863_t *ctx, uint16_t time_stamp) |
Time Stamp Prescaler Set. | |
err_t | mcp251863_oscillator_enable (mcp251863_t *ctx) |
Enable oscillator to wake-up from sleep. | |
err_t | mcp251863_oscillator_control_set (mcp251863_t *ctx, mcp251863_div_ctl_t ctrl) |
Set Oscillator Control. | |
void | mcp251863_oscillator_control_object_reset (mcp251863_div_ctl_t *ctrl) |
Reset Oscillator Control. | |
err_t | mcp251863_oscillator_status_get (mcp251863_t *ctx, mcp251863_osc_sta_t *status) |
Get Oscillator Status. | |
err_t | mcp251863_bit_time_configure (mcp251863_t *ctx, uint8_t bit_time, uint8_t clk) |
Configure Bit Time registers (based on CAN clock speed). | |
err_t | mcp251863_bit_time_configure_nominal_40_mhz (mcp251863_t *ctx, uint8_t bit_time) |
Configure Nominal bit time for 40MHz system clock. | |
err_t | mcp251863_bit_time_configure_data_40_mhz (mcp251863_t *ctx, uint8_t bit_time) |
Configure Data bit time for 40MHz system clock. | |
err_t | mcp251863_bit_time_configure_nominal_20_mhz (mcp251863_t *ctx, uint8_t bit_time) |
Configure Nominal bit time for 20MHz system clock. | |
err_t | mcp251863_bit_time_configure_data_20_mhz (mcp251863_t *ctx, uint8_t bit_time) |
Configure Nominal bit time for 20MHz system clock. | |
err_t | mcp251863_bit_time_configure_nominal_10_mhz (mcp251863_t *ctx, uint8_t bit_time) |
Configure Nominal bit time for 10MHz system clock. | |
err_t | mcp251863_bit_time_configure_data_10_mhz (mcp251863_t *ctx, uint8_t bit_time) |
Configure Data bit time for 10MHz system clock. | |
err_t | mcp251863_gpio_mode_configure (mcp251863_t *ctx, uint8_t gpio0, uint8_t gpio1) |
Initialize GPIO Mode. | |
err_t | mcp251863_gpio_direction_configure (mcp251863_t *ctx, uint8_t gpio0, uint8_t gpio1) |
Initialize GPIO Direction. | |
err_t | mcp251863_gpio_standby_control_enable (mcp251863_t *ctx) |
Enable Transceiver Standby Control. | |
err_t | mcp251863_gpio_standby_control_disable (mcp251863_t *ctx) |
Disable Transceiver Standby Control. | |
err_t | mcp251863_gpio_interrupt_pins_open_drain_configure (mcp251863_t *ctx, uint8_t mode) |
Configure Open Drain Interrupts. | |
err_t | mcp251863_gpio_transmit_pin_open_drain_configure (mcp251863_t *ctx, uint8_t mode) |
Configure Open Drain TXCAN. | |
err_t | mcp251863_gpio_pin_set (mcp251863_t *ctx, uint8_t pos, uint8_t latch) |
GPIO Output Pin Set. | |
err_t | mcp251863_gpio_pin_read (mcp251863_t *ctx, uint8_t pos, uint8_t *state) |
Input Pin Read. | |
err_t | mcp251863_gpio_clock_output_configure (mcp251863_t *ctx, int8_t mode) |
Configure CLKO Pin. | |
uint32_t | mcp251863_dlc_to_data_bytes (uint8_t dlc) |
DLC to number of actual data_bytes conversion. | |
err_t | mcp251863_fifo_index_get (mcp251863_t *ctx, uint8_t channel, uint8_t *data_out) |
FIFO Index Get. | |
uint16_t | mcp251863_calculate_crc16 (uint8_t *data_pointer, uint16_t size) |
Calculate CRC16. | |
uint8_t | mcp251863_data_bytes_to_dlc (uint8_t num) |
Data bytes to DLC conversion. | |
This file contains API for MCP251863 Click Driver.
typedef uint8_t mcp251863_id_t |
MCP251863 Click Module ID.
Module ID definition of MCP251863 Click driver.
typedef uint32_t mcp251863_msg_time_stamp_t |
MCP251863 Click CAN Message Time Stamp.
CAN Message Time Stamp definition of MCP251863 Click driver.