singlewirecan 2.0.0.0
|
This file contains API for Single Wire CAN Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_uart.h"
Go to the source code of this file.
Data Structures | |
struct | singlewirecan_t |
Click ctx object definition. More... | |
struct | singlewirecan_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | SINGLEWIRECAN_MAP_MIKROBUS(cfg, mikrobus) |
#define | SINGLEWIRECAN_RETVAL uint8_t |
#define | SINGLEWIRECAN_OK 0x00 |
#define | SINGLEWIRECAN_INIT_ERROR 0xFF |
#define | SINGLEWIRECAN_OPERATING_MODE_SLEEP 0x00 |
#define | SINGLEWIRECAN_OPERATING_MODE_HIGH_SPEED 0x01 |
#define | SINGLEWIRECAN_OPERATING_MODE_HIGH_VOLTAGE_WAKE_UP 0x02 |
#define | SINGLEWIRECAN_OPERATING_MODE_NORMAL 0x03 |
#define | SINGLEWIRECAN_PIN_STATE_LOW 0x00 |
#define | SINGLEWIRECAN_PIN_STATE_HIGH 0x01 |
#define | SINGLEWIRECAN_END_BUFF 0x00 |
#define | DRV_RX_BUFFER_SIZE 500 |
Functions | |
void | singlewirecan_cfg_setup (singlewirecan_cfg_t *cfg) |
Config Object Initialization function. | |
SINGLEWIRECAN_RETVAL | singlewirecan_init (singlewirecan_t *ctx, singlewirecan_cfg_t *cfg) |
Initialization function. | |
void | singlewirecan_generic_write (singlewirecan_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | singlewirecan_generic_read (singlewirecan_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | singlewirecan_set_md_0_pin_state (singlewirecan_t *ctx, uint8_t rst_state) |
Sets MD0 pin state. | |
void | singlewirecan_set_md_1_pin_state (singlewirecan_t *ctx, uint8_t cs_state) |
Sets MD1 pin state. | |
void | singlewirecan_set_operating_mode (singlewirecan_t *ctx, uint8_t op_mode) |
Set operating mode function. | |
This file contains API for Single Wire CAN Click driver.