cdc 2.1.0.0
CDC Registers Settings

Settings for registers of CDC Click driver. More...

Macros

#define CDC_MEM_ADDRESS_START   0x0000u
 CDC memory address setting.
 
#define CDC_MEM_ADDRESS_END   0x03FFu
 
#define CDC_MEM_ADDRESS_CFG_OFFSET   0x03C0u
 
#define CDC_MEM_ADDRESS_WR_BLOCK_SIZE   64
 
#define CDC_FIXED_POINT_NUM_FRACTIONAL   27
 CDC fixed-point result setting.
 
#define CDC_TEST_READ_RES   0x11
 CDC test read result setting.
 
#define CDC_DEVICE_ADDRESS   0x28
 CDC device address setting.
 
#define CDC_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define CDC_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of CDC Click driver.

Macro Definition Documentation

◆ CDC_DEVICE_ADDRESS

#define CDC_DEVICE_ADDRESS   0x28

CDC device address setting.

Specified setting for device slave address selection of CDC Click driver.

◆ CDC_FIXED_POINT_NUM_FRACTIONAL

#define CDC_FIXED_POINT_NUM_FRACTIONAL   27

CDC fixed-point result setting.

Specified setting fixed-point result of CDC Click driver.

◆ CDC_MEM_ADDRESS_CFG_OFFSET

#define CDC_MEM_ADDRESS_CFG_OFFSET   0x03C0u

◆ CDC_MEM_ADDRESS_END

#define CDC_MEM_ADDRESS_END   0x03FFu

◆ CDC_MEM_ADDRESS_START

#define CDC_MEM_ADDRESS_START   0x0000u

CDC memory address setting.

Specified setting memory address of CDC Click driver.

◆ CDC_MEM_ADDRESS_WR_BLOCK_SIZE

#define CDC_MEM_ADDRESS_WR_BLOCK_SIZE   64

◆ CDC_SET_DATA_SAMPLE_EDGE

#define CDC_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE

Data sample selection.

This macro sets data samples for SPI modules.

Note
Available only on Microchip PIC family devices. This macro will set data sampling for all SPI modules on MCU. Can be overwritten with cdc_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.

◆ CDC_SET_DATA_SAMPLE_MIDDLE

#define CDC_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ CDC_TEST_READ_RES

#define CDC_TEST_READ_RES   0x11

CDC test read result setting.

Specified setting test read result used for testing communication of CDC Click driver.