Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CAN - SN65HVD234

Transceiver.

This driver provides access to the main features of the SN65HVD234 transceiver.

Control the RS and EN pin level for SN65HVD234.

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...
 

#define CAN_EN_HIGH   true

Referenced by sn65hvd234_enable().

#define CAN_EN_LOW   false

Referenced by sn65hvd234_disable().

#define CAN_RS_HIGH   true
#define CAN_RS_LOW   false

void sn65hvd234_disable ( sn65hvd234_ctrl_t p_component)

Disable transceiver.

Parameters
p_componentPointer to SN65HVD234 control structure.

References CAN_EN_LOW, ioport_set_pin_level(), and sn65hvd234_ctrl_t::pio_en_idx.

void sn65hvd234_disable_low_power ( sn65hvd234_ctrl_t p_component)

Resume to Normal mode by exiting from low power mode.

Parameters
p_componentPointer to SN65HVD234 control structure.

References CAN_RS_LOW, ioport_set_pin_level(), and sn65hvd234_ctrl_t::pio_rs_idx.

void sn65hvd234_enable ( sn65hvd234_ctrl_t p_component)

Enable transceiver.

Parameters
p_componentPointer to SN65HVD234 control structure.

References CAN_EN_HIGH, ioport_set_pin_level(), and sn65hvd234_ctrl_t::pio_en_idx.

void sn65hvd234_enable_low_power ( sn65hvd234_ctrl_t p_component)

Turn the component into low power mode, listening only.

Parameters
p_componentPointer to SN65HVD234 control structure.

References CAN_RS_HIGH, ioport_set_pin_level(), and sn65hvd234_ctrl_t::pio_rs_idx.

void sn65hvd234_set_en ( sn65hvd234_ctrl_t p_component,
uint32_t  pin_idx 
)

Initialize EN pin for transceiver.

Parameters
p_componentPointer to SN65HVD234 control structure.
pin_idxThe pin index value for transceiver EN pin.

References sn65hvd234_ctrl_t::pio_en_idx.

void sn65hvd234_set_rs ( sn65hvd234_ctrl_t p_component,
uint32_t  pin_idx 
)

Initialize RS pin for transceiver.

Parameters
p_componentPointer to SN65HVD234 control structure.
pin_idxThe pin index value for transceiver RS pin.

References sn65hvd234_ctrl_t::pio_rs_idx.