Microchip® Advanced Software Framework

sn65hvd234.c File Reference

CAN transceiver SN65HVD234 driver.

Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.

#include "board.h"
#include "sn65hvd234.h"
#include "ioport.h"

Macros

#define CAN_EN_HIGH   true
 
#define CAN_EN_LOW   false
 
#define CAN_RS_HIGH   true
 
#define CAN_RS_LOW   false
 

Functions

void sn65hvd234_disable (sn65hvd234_ctrl_t *p_component)
 Disable transceiver. More...
 
void sn65hvd234_disable_low_power (sn65hvd234_ctrl_t *p_component)
 Resume to Normal mode by exiting from low power mode. More...
 
void sn65hvd234_enable (sn65hvd234_ctrl_t *p_component)
 Enable transceiver. More...
 
void sn65hvd234_enable_low_power (sn65hvd234_ctrl_t *p_component)
 Turn the component into low power mode, listening only. More...
 
void sn65hvd234_set_en (sn65hvd234_ctrl_t *p_component, uint32_t pin_idx)
 Initialize EN pin for transceiver. More...
 
void sn65hvd234_set_rs (sn65hvd234_ctrl_t *p_component, uint32_t pin_idx)
 Initialize RS pin for transceiver. More...