Driverlib I2CC API
Module: Driverlib (AM13E230X) APIs
Structures
Name |
|
|---|---|
struct |
DL_I2CC_ClockConfig |
Types
Name |
|
|---|---|
enum |
DL_I2CC_EVENT_ROUTE { DL_I2CC_EVENT_ROUTE_1 = 0, DL_I2CC_EVENT_ROUTE_2 = 12} |
enum |
DL_I2CC_CLOCK { DL_I2CC_CLOCK_BUSCLK = UNICOMMI2CC_CLKSEL_BUSCLK_SEL_ENABLE} |
enum |
DL_I2CC_CLOCK_DIVIDE { DL_I2CC_CLOCK_DIVIDE_1 = UNICOMMI2CC_CLKDIV_RATIO_DIV_BY_1, DL_I2CC_CLOCK_DIVIDE_2 = UNICOMMI2CC_CLKDIV_RATIO_DIV_BY_2, DL_I2CC_CLOCK_DIVIDE_3 = UNICOMMI2CC_CLKDIV_RATIO_DIV_BY_3, DL_I2CC_CLOCK_DIVIDE_4 = UNICOMMI2CC_CLKDIV_RATIO_DIV_BY_4, DL_I2CC_CLOCK_DIVIDE_5 = UNICOMMI2CC_CLKDIV_RATIO_DIV_BY_5, DL_I2CC_CLOCK_DIVIDE_6 = UNICOMMI2CC_CLKDIV_RATIO_DIV_BY_6, DL_I2CC_CLOCK_DIVIDE_7 = UNICOMMI2CC_CLKDIV_RATIO_DIV_BY_7, DL_I2CC_CLOCK_DIVIDE_8 = UNICOMMI2CC_CLKDIV_RATIO_DIV_BY_8} |
enum |
DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH { DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH_DISABLED = UNICOMMI2CC_GFCTL_DGFSEL_DISABLED, DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH_CLOCKS_1 = UNICOMMI2CC_GFCTL_DGFSEL_CLK_1, DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH_CLOCKS_2 = UNICOMMI2CC_GFCTL_DGFSEL_CLK_2, DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH_CLOCKS_3 = UNICOMMI2CC_GFCTL_DGFSEL_CLK_3, DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH_CLOCKS_4 = UNICOMMI2CC_GFCTL_DGFSEL_CLK_4, DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH_CLOCKS_8 = UNICOMMI2CC_GFCTL_DGFSEL_CLK_8, DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH_CLOCKS_16 = UNICOMMI2CC_GFCTL_DGFSEL_CLK_16, DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH_CLOCKS_31 = UNICOMMI2CC_GFCTL_DGFSEL_CLK_31} |
enum |
DL_I2CC_DIRECTION { DL_I2CC_DIRECTION_TX = UNICOMMI2CC_TA_DIR_TRANSMIT, DL_I2CC_DIRECTION_RX = UNICOMMI2CC_TA_DIR_RECEIVE} |
enum |
DL_I2CC_ADDRESSING_MODE { DL_I2CC_ADDRESSING_MODE_7_BIT = UNICOMMI2CC_TA_MODE_MODE7, DL_I2CC_ADDRESSING_MODE_10_BIT = UNICOMMI2CC_TA_MODE_MODE10} |
enum |
DL_I2CC_PEC_STATUS { DL_I2CC_PEC_STATUS_CHECKED = UNICOMMI2CC_PECSR_PECSTS_CHECK_SET, DL_I2CC_PEC_STATUS_NOT_CHECKED = UNICOMMI2CC_PECSR_PECSTS_CHECK_CLEARED} |
enum |
DL_I2CC_PEC_CHECK_ERROR { DL_I2CC_PEC_CHECK_ERROR_SET = UNICOMMI2CC_PECSR_PECSTS_ERROR_SET, DL_I2CC_PEC_CHECK_ERROR_CLEARED = UNICOMMI2CC_PECSR_PECSTS_ERROR_CLEARED} |
enum |
DL_I2CC_SCL { DL_I2CC_SCL_HIGH = UNICOMMI2CC_BMON_SCL_SET, DL_I2CC_SCL_LOW = UNICOMMI2CC_BMON_SCL_CLEARED} |
enum |
DL_I2CC_SDA { DL_I2CC_SDA_HIGH = UNICOMMI2CC_BMON_SDA_SET, DL_I2CC_SDA_LOW = UNICOMMI2CC_BMON_SDA_CLEARED} |
enum |
DL_I2CC_START { DL_I2CC_START_ENABLE = UNICOMMI2CC_CTR_START_ENABLE, DL_I2CC_START_DISABLE = UNICOMMI2CC_CTR_START_DISABLE} |
enum |
DL_I2CC_STOP { DL_I2CC_STOP_ENABLE = UNICOMMI2CC_CTR_STOP_ENABLE, DL_I2CC_STOP_DISABLE = UNICOMMI2CC_CTR_STOP_DISABLE} |
enum |
DL_I2CC_ACK { DL_I2CC_ACK_ENABLE = UNICOMMI2CC_CTR_ACK_ENABLE, DL_I2CC_ACK_DISABLE = UNICOMMI2CC_CTR_ACK_DISABLE} |
enum |
DL_I2CC_TX_FIFO_LEVEL { DL_I2CC_TX_FIFO_LEVEL_3_4_EMPTY = UNICOMMI2CC_IFLS_TXIFLSEL_LVL_3_4, DL_I2CC_TX_FIFO_LEVEL_1_2_EMPTY = UNICOMMI2CC_IFLS_TXIFLSEL_LVL_1_2, DL_I2CC_TX_FIFO_LEVEL_1_4_EMPTY = UNICOMMI2CC_IFLS_TXIFLSEL_LVL_1_4, DL_I2CC_TX_FIFO_LEVEL_NOT_FULL = UNICOMMI2CC_IFLS_TXIFLSEL_LVL_NOT_FULL, DL_I2CC_TX_FIFO_LEVEL_EMPTY = UNICOMMI2CC_IFLS_TXIFLSEL_LVL_EMPTY, DL_I2CC_TX_FIFO_LEVEL_ALMOST_EMPTY = UNICOMMI2CC_IFLS_TXIFLSEL_LVL_ALMOST_EMPTY, DL_I2CC_TX_FIFO_LEVEL_ALMOST_FULL = UNICOMMI2CC_IFLS_TXIFLSEL_LVL_ALMOST_FULL} |
enum |
DL_I2CC_RX_FIFO_LEVEL { DL_I2CC_RX_FIFO_LEVEL_3_4_FULL = UNICOMMI2CC_IFLS_RXIFLSEL_LVL_3_4, DL_I2CC_RX_FIFO_LEVEL_1_2_FULL = UNICOMMI2CC_IFLS_RXIFLSEL_LVL_1_2, DL_I2CC_RX_FIFO_LEVEL_1_4_FULL = UNICOMMI2CC_IFLS_RXIFLSEL_LVL_1_4, DL_I2CC_RX_FIFO_LEVEL_NOT_EMPTY = UNICOMMI2CC_IFLS_RXIFLSEL_LVL_NOT_EMPTY, DL_I2CC_RX_FIFO_LEVEL_FULL = UNICOMMI2CC_IFLS_RXIFLSEL_LVL_FULL, DL_I2CC_RX_FIFO_LEVEL_ALMOST_EMPTY = UNICOMMI2CC_IFLS_RXIFLSEL_LVL_ALMOST_EMPTY, DL_I2CC_RX_FIFO_LEVEL_ALMOST_FULL = UNICOMMI2CC_IFLS_RXIFLSEL_LVL_ALMOST_FULL} |
enum |
DL_I2CC_IIDX { DL_I2CC_IIDX_NO_INT = UNICOMMI2CC_IIDX_STAT_NO_INTR, DL_I2CC_IIDX_RX_DONE = UNICOMMI2CC_IIDX_STAT_RXDONEFG, DL_I2CC_IIDX_TX_DONE = UNICOMMI2CC_IIDX_STAT_TXDONEFG, DL_I2CC_IIDX_RXFIFO_TRIGGER = UNICOMMI2CC_IIDX_STAT_RXTRG, DL_I2CC_IIDX_TXFIFO_TRIGGER = UNICOMMI2CC_IIDX_STAT_TXTRG, DL_I2CC_IIDX_RXFIFO_FULL = UNICOMMI2CC_IIDX_STAT_RXFULL, DL_I2CC_IIDX_TXFIFO_EMPTY = UNICOMMI2CC_IIDX_STAT_TXEMPTY, DL_I2CC_IIDX_NACK = UNICOMMI2CC_IIDX_STAT_NACKFG, DL_I2CC_IIDX_START = UNICOMMI2CC_IIDX_STAT_STARTFG, DL_I2CC_IIDX_STOP = UNICOMMI2CC_IIDX_STAT_STOPFG, DL_I2CC_IIDX_ARBITRATION_LOST = UNICOMMI2CC_IIDX_STAT_ARBLOSTFG, DL_I2CC_IIDX_EVENT1_DMA_DONE = UNICOMMI2CC_IIDX_STAT_DMA_DONE_TX, DL_I2CC_IIDX_EVENT2_DMA_DONE = UNICOMMI2CC_IIDX_STAT_DMA_DONE_RX, DL_I2CC_IIDX_PREEMPT_INT_TX = UNICOMMI2CC_IIDX_STAT_DMA_PREIRQ_TX, DL_I2CC_IIDX_PREEMPT_INT_RX = UNICOMMI2CC_IIDX_STAT_DMA_PREIRQ_RX, DL_I2CC_IIDX_PEC_RX_ERROR = UNICOMMI2CC_IIDX_STAT_PEC_RX_ERR, DL_I2CC_IIDX_TIMEOUT_A = UNICOMMI2CC_IIDX_STAT_TIMEOUTA, DL_I2CC_IIDX_TIMEOUT_B = UNICOMMI2CC_IIDX_STAT_TIMEOUTB} |
Functions
Name |
|
|---|---|
void |
DL_I2CC_setClockConfig(DL_UNICOMM_Inst_Regs * unicomm, DL_I2CC_ClockConfig * config) |
void |
DL_I2CC_getClockConfig(DL_UNICOMM_Inst_Regs * unicomm, DL_I2CC_ClockConfig * config) |
uint16_t |
DL_I2CC_fillTXFIFO(DL_UNICOMM_Inst_Regs * unicomm, uint8_t * buffer, uint16_t count) |
void |
DL_I2CC_flushTXFIFO(DL_UNICOMM_Inst_Regs * unicomm) |
void |
DL_I2CC_flushRXFIFO(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE bool |
DL_I2CC_isTXFIFOFull(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE bool |
DL_I2CC_isTXFIFOEmpty(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE bool |
DL_I2CC_isRXFIFOEmpty(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_resetTransfer(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_startTransfer(DL_UNICOMM_Inst_Regs * unicomm, uint32_t targetAddr, DL_I2CC_DIRECTION direction, uint16_t length) |
__STATIC_INLINE void |
DL_I2CC_startTransferAdvanced(DL_UNICOMM_Inst_Regs * unicomm, uint32_t targetAddr, DL_I2CC_DIRECTION direction, uint16_t length, DL_I2CC_START start, DL_I2CC_STOP stop, DL_I2CC_ACK ack) |
__STATIC_INLINE void |
DL_I2CC_enablePower(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_disablePower(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE bool |
DL_I2CC_isPowerEnabled(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_reset(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE bool |
DL_I2CC_isReset(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_selectClockSource(DL_UNICOMM_Inst_Regs * unicomm, DL_I2CC_CLOCK clockSource) |
__STATIC_INLINE void |
DL_I2CC_selectClockDivider(DL_UNICOMM_Inst_Regs * unicomm, DL_I2CC_CLOCK_DIVIDE clockDivider) |
__STATIC_INLINE DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH |
DL_I2CC_getDigitalGlitchFilterPulseWidth(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_setDigitalGlitchFilterPulseWidth(DL_UNICOMM_Inst_Regs * unicomm, DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH filterWidth) |
__STATIC_INLINE void |
DL_I2CC_disableAnalogGlitchFilter(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE bool |
DL_I2CC_isAnalogGlitchFilterEnabled(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_enableAnalogGlitchFilter(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE DL_I2CC_DIRECTION |
DL_I2CC_getDirection(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_setDirection(DL_UNICOMM_Inst_Regs * unicomm, DL_I2CC_DIRECTION direction) |
__STATIC_INLINE uint32_t |
DL_I2CC_getTargetAddress(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_setTargetAddress(DL_UNICOMM_Inst_Regs * unicomm, uint32_t targetAddress) |
__STATIC_INLINE DL_I2CC_ADDRESSING_MODE |
DL_I2CC_getAddressingMode(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_setAddressingMode(DL_UNICOMM_Inst_Regs * unicomm, DL_I2CC_ADDRESSING_MODE mode) |
__STATIC_INLINE void |
DL_I2CC_disableACKOverride(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE bool |
DL_I2CC_isACKOverrideEnabled(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_enableACKOverride(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_disableReadOnTXEmpty(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE bool |
DL_I2CC_isReadOnTXEmptyEnabled(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_enableReadOnTXEmpty(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE uint32_t |
DL_I2CC_getPECCountValue(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_setPECCountValue(DL_UNICOMM_Inst_Regs * unicomm, uint32_t count) |
__STATIC_INLINE void |
DL_I2CC_disablePEC(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE bool |
DL_I2CC_isPECEnabled(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_enablePEC(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE uint32_t |
DL_I2CC_getCurrentPECCount(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE DL_I2CC_PEC_STATUS |
DL_I2CC_getPECCheckedStatus(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE DL_I2CC_PEC_CHECK_ERROR |
DL_I2CC_getPECCheckError(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_disableStartCondition(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE bool |
DL_I2CC_isStartConditionEnabled(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_enableStartCondition(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_disableStopCondition(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE bool |
DL_I2CC_isStopConditionEnabled(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_enableStopCondition(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_disableACK(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE bool |
DL_I2CC_isACKEnabled(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_enableACK(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE uint32_t |
DL_I2CC_getTransactionLength(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_setTransactionLength(DL_UNICOMM_Inst_Regs * unicomm, uint32_t length) |
__STATIC_INLINE uint32_t |
DL_I2CC_getStatus(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE uint16_t |
DL_I2CC_getTransactionCount(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE uint8_t |
DL_I2CC_receiveData(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_transmitData(DL_UNICOMM_Inst_Regs * unicomm, uint8_t data) |
__STATIC_INLINE uint8_t |
DL_I2CC_getTimerPeriod(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_setTimerPeriod(DL_UNICOMM_Inst_Regs * unicomm, uint8_t period) |
__STATIC_INLINE void |
DL_I2CC_disableMultiMode(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE bool |
DL_I2CC_isMultiModeEnabled(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_enableMultiMode(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_disable(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE bool |
DL_I2CC_isEnabled(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_enable(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_disableClockStretching(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE bool |
DL_I2CC_isClockStretchingEnabled(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_enableClockStretching(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE DL_I2CC_SCL |
DL_I2CC_getSCLStatus(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE DL_I2CC_SDA |
DL_I2CC_getSDAStatus(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE DL_I2CC_TX_FIFO_LEVEL |
DL_I2CC_getTXFIFOThreshold(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_setTXFIFOThreshold(DL_UNICOMM_Inst_Regs * unicomm, DL_I2CC_TX_FIFO_LEVEL level) |
__STATIC_INLINE void |
DL_I2CC_stopFlushTXFIFO(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_startFlushTXFIFO(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE DL_I2CC_RX_FIFO_LEVEL |
DL_I2CC_getRXFIFOThreshold(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_setRXFIFOThreshold(DL_UNICOMM_Inst_Regs * unicomm, DL_I2CC_RX_FIFO_LEVEL level) |
__STATIC_INLINE void |
DL_I2CC_stopFlushRXFIFO(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_startFlushRXFIFO(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE uint32_t |
DL_I2CC_getRXFIFOCounter(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE uint32_t |
DL_I2CC_getTXFIFOCounter(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE bool |
DL_I2CC_isRXFIFOFlushActive(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE bool |
DL_I2CC_isTXFIFOFlushActive(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_enableInterrupt(DL_UNICOMM_Inst_Regs * unicomm, uint32_t interruptMask) |
__STATIC_INLINE void |
DL_I2CC_disableInterrupt(DL_UNICOMM_Inst_Regs * unicomm, uint32_t interruptMask) |
__STATIC_INLINE uint32_t |
DL_I2CC_getEnabledInterrupts(DL_UNICOMM_Inst_Regs * unicomm, uint32_t interruptMask) |
__STATIC_INLINE uint32_t |
DL_I2CC_getEnabledInterruptStatus(DL_UNICOMM_Inst_Regs * unicomm, uint32_t interruptMask) |
__STATIC_INLINE uint32_t |
DL_I2CC_getRawInterruptStatus(DL_UNICOMM_Inst_Regs * unicomm, uint32_t interruptMask) |
__STATIC_INLINE DL_I2CC_IIDX |
DL_I2CC_getPendingInterrupt(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_clearInterruptStatus(DL_UNICOMM_Inst_Regs * unicomm, uint32_t interruptMask) |
__STATIC_INLINE void |
DL_I2CC_enableDMAEvent(DL_UNICOMM_Inst_Regs * unicomm, DL_I2CC_EVENT_ROUTE index, uint32_t interrupt) |
__STATIC_INLINE void |
DL_I2CC_disableDMAEvent(DL_UNICOMM_Inst_Regs * unicomm, DL_I2CC_EVENT_ROUTE index, uint32_t interrupt) |
__STATIC_INLINE uint32_t |
DL_I2CC_getEnabledDMAEvents(DL_UNICOMM_Inst_Regs * unicomm, DL_I2CC_EVENT_ROUTE index, uint32_t interruptMask) |
__STATIC_INLINE uint32_t |
DL_I2CC_getEnabledDMAEventStatus(DL_UNICOMM_Inst_Regs * unicomm, DL_I2CC_EVENT_ROUTE index, uint32_t interruptMask) |
__STATIC_INLINE uint32_t |
DL_I2CC_getRawDMAEventStatus(DL_UNICOMM_Inst_Regs * unicomm, DL_I2CC_EVENT_ROUTE index, uint32_t interruptMask) |
__STATIC_INLINE uint32_t |
DL_I2CC_getTimeoutACount(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_setTimeoutACount(DL_UNICOMM_Inst_Regs * unicomm, uint32_t count) |
__STATIC_INLINE void |
DL_I2CC_disableTimeoutA(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE bool |
DL_I2CC_isTimeoutAEnabled(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_enableTimeoutA(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE uint32_t |
DL_I2CC_getCurrentTimeoutACounter(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE uint32_t |
DL_I2CC_getTimeoutBCount(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_setTimeoutBCount(DL_UNICOMM_Inst_Regs * unicomm, uint32_t count) |
__STATIC_INLINE void |
DL_I2CC_disableTimeoutB(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE bool |
DL_I2CC_isTimeoutBEnabled(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE void |
DL_I2CC_enableTimeoutB(DL_UNICOMM_Inst_Regs * unicomm) |
__STATIC_INLINE uint32_t |
DL_I2CC_getCurrentTimeoutBCounter(DL_UNICOMM_Inst_Regs * unicomm) |
Defines
Name |
|
|---|---|
DL_I2CC_STATUS_BUSY |
|
DL_I2CC_STATUS_ERROR |
|
DL_I2CC_STATUS_ADDR_ACK |
|
DL_I2CC_STATUS_DATA_ACK |
|
DL_I2CC_STATUS_ARBITRATION_LOST |
|
DL_I2CC_STATUS_IDLE |
|
DL_I2CC_STATUS_BUSY_BUS |
|
DL_I2CC_INTERRUPT_RX_DONE |
|
DL_I2CC_INTERRUPT_TX_DONE |
|
DL_I2CC_INTERRUPT_RXFIFO_TRIGGER |
|
DL_I2CC_INTERRUPT_TXFIFO_TRIGGER |
|
DL_I2CC_INTERRUPT_RXFIFO_FULL |
|
DL_I2CC_INTERRUPT_TXFIFO_EMPTY |
|
DL_I2CC_INTERRUPT_NACK |
|
DL_I2CC_INTERRUPT_START |
|
DL_I2CC_INTERRUPT_STOP |
|
DL_I2CC_INTERRUPT_ARBITRATION_LOST |
|
DL_I2CC_INTERRUPT_EVENT1_DMA_DONE |
|
DL_I2CC_INTERRUPT_EVENT2_DMA_DONE |
|
DL_I2CC_INTERRUPT_PEC_RX_ERROR |
|
DL_I2CC_INTERRUPT_TIMEOUT_A |
|
DL_I2CC_INTERRUPT_TIMEOUT_B |
|
DL_I2CC_DMA_INTERRUPT_TXFIFO_TRIGGER |
|
DL_I2CC_DMA_INTERRUPT_RXFIFO_TRIGGER |
Types Documentation
enum DL_I2CC_EVENT_ROUTE
Enumerator |
Value |
Description |
|---|---|---|
DL_I2CC_EVENT_ROUTE_1 |
0 |
I2CC event route 1 |
DL_I2CC_EVENT_ROUTE_2 |
12 |
I2CC event route 2 |
enum DL_I2CC_CLOCK
Enumerator |
Value |
Description |
|---|---|---|
DL_I2CC_CLOCK_BUSCLK |
UNICOMMI2CC_CLKSEL_BUSCLK_SEL_ENABLE |
BUSCLK enabled as I2CC clock source |
enum DL_I2CC_CLOCK_DIVIDE
Enumerator |
Value |
Description |
|---|---|---|
DL_I2CC_CLOCK_DIVIDE_1 |
UNICOMMI2CC_CLKDIV_RATIO_DIV_BY_1 |
I2CC Clock Divided by 1 |
DL_I2CC_CLOCK_DIVIDE_2 |
UNICOMMI2CC_CLKDIV_RATIO_DIV_BY_2 |
I2CC Clock Divided by 2 |
DL_I2CC_CLOCK_DIVIDE_3 |
UNICOMMI2CC_CLKDIV_RATIO_DIV_BY_3 |
I2CC Clock Divided by 3 |
DL_I2CC_CLOCK_DIVIDE_4 |
UNICOMMI2CC_CLKDIV_RATIO_DIV_BY_4 |
I2CC Clock Divided by 4 |
DL_I2CC_CLOCK_DIVIDE_5 |
UNICOMMI2CC_CLKDIV_RATIO_DIV_BY_5 |
I2CC Clock Divided by 5 |
DL_I2CC_CLOCK_DIVIDE_6 |
UNICOMMI2CC_CLKDIV_RATIO_DIV_BY_6 |
I2CC Clock Divided by 6 |
DL_I2CC_CLOCK_DIVIDE_7 |
UNICOMMI2CC_CLKDIV_RATIO_DIV_BY_7 |
I2CC Clock Divided by 7 |
DL_I2CC_CLOCK_DIVIDE_8 |
UNICOMMI2CC_CLKDIV_RATIO_DIV_BY_8 |
I2CC Clock Divided by 8 |
enum DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH
Enumerator |
Value |
Description |
|---|---|---|
DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH_DISABLED |
UNICOMMI2CC_GFCTL_DGFSEL_DISABLED |
Pulses filtering disabled. |
DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH_CLOCKS_1 |
UNICOMMI2CC_GFCTL_DGFSEL_CLK_1 |
Pulses shorter than 1 functional clock tick in length are filtered. |
DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH_CLOCKS_2 |
UNICOMMI2CC_GFCTL_DGFSEL_CLK_2 |
Pulses shorter than 2 functional clock ticks in length are filtered. |
DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH_CLOCKS_3 |
UNICOMMI2CC_GFCTL_DGFSEL_CLK_3 |
Pulses shorter than 3 functional clock ticks in length are filtered. |
DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH_CLOCKS_4 |
UNICOMMI2CC_GFCTL_DGFSEL_CLK_4 |
Pulses shorter than 4 functional clock ticks in length are filtered. |
DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH_CLOCKS_8 |
UNICOMMI2CC_GFCTL_DGFSEL_CLK_8 |
Pulses shorter than 8 functional clock ticks in length are filtered. |
DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH_CLOCKS_16 |
UNICOMMI2CC_GFCTL_DGFSEL_CLK_16 |
Pulses shorter than 16 functional clock ticks in length are filtered. |
DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH_CLOCKS_31 |
UNICOMMI2CC_GFCTL_DGFSEL_CLK_31 |
Pulses shorter than 31 functional clock ticks in length are filtered. |
enum DL_I2CC_DIRECTION
Enumerator |
Value |
Description |
|---|---|---|
DL_I2CC_DIRECTION_TX |
UNICOMMI2CC_TA_DIR_TRANSMIT |
Set direction to transmitting to target |
DL_I2CC_DIRECTION_RX |
UNICOMMI2CC_TA_DIR_RECEIVE |
Set direction to receiving from target |
enum DL_I2CC_ADDRESSING_MODE
Enumerator |
Value |
Description |
|---|---|---|
DL_I2CC_ADDRESSING_MODE_7_BIT |
UNICOMMI2CC_TA_MODE_MODE7 |
Enable in 7-bit addressing mode |
DL_I2CC_ADDRESSING_MODE_10_BIT |
UNICOMMI2CC_TA_MODE_MODE10 |
Enable in 10-bit addressing mode |
enum DL_I2CC_PEC_STATUS
Enumerator |
Value |
Description |
|---|---|---|
DL_I2CC_PEC_STATUS_CHECKED |
UNICOMMI2CC_PECSR_PECSTS_CHECK_SET |
I2CC SMBus/PMBus PEC was checked in the transaction that occurred before the last Stop |
DL_I2CC_PEC_STATUS_NOT_CHECKED |
UNICOMMI2CC_PECSR_PECSTS_CHECK_CLEARED |
I2CC SMBus/PMBus PEC was not checked in the transaction that occurred the last Stop |
enum DL_I2CC_PEC_CHECK_ERROR
Enumerator |
Value |
Description |
|---|---|---|
DL_I2CC_PEC_CHECK_ERROR_SET |
UNICOMMI2CC_PECSR_PECSTS_ERROR_SET |
I2CC SMBus/PMBus PEC check error occurred in the transaction before the last stop |
DL_I2CC_PEC_CHECK_ERROR_CLEARED |
UNICOMMI2CC_PECSR_PECSTS_ERROR_CLEARED |
I2CC SMBus/PMBus PEC check error did not occur in the transaction before the last stop |
enum DL_I2CC_SCL
Enumerator |
Value |
Description |
|---|---|---|
DL_I2CC_SCL_HIGH |
UNICOMMI2CC_BMON_SCL_SET |
I2CC SCL signal high |
DL_I2CC_SCL_LOW |
UNICOMMI2CC_BMON_SCL_CLEARED |
I2CC SCL signal low |
enum DL_I2CC_SDA
Enumerator |
Value |
Description |
|---|---|---|
DL_I2CC_SDA_HIGH |
UNICOMMI2CC_BMON_SDA_SET |
I2CC SDA signal high |
DL_I2CC_SDA_LOW |
UNICOMMI2CC_BMON_SDA_CLEARED |
I2CC SDA signal low |
enum DL_I2CC_START
Enumerator |
Value |
Description |
|---|---|---|
DL_I2CC_START_ENABLE |
UNICOMMI2CC_CTR_START_ENABLE |
generates START condition |
DL_I2CC_START_DISABLE |
UNICOMMI2CC_CTR_START_DISABLE |
doesn’t generate START condition |
enum DL_I2CC_STOP
Enumerator |
Value |
Description |
|---|---|---|
DL_I2CC_STOP_ENABLE |
UNICOMMI2CC_CTR_STOP_ENABLE |
generates STOP condition |
DL_I2CC_STOP_DISABLE |
UNICOMMI2CC_CTR_STOP_DISABLE |
doesn’t generate STOP condition |
enum DL_I2CC_ACK
Enumerator |
Value |
Description |
|---|---|---|
DL_I2CC_ACK_ENABLE |
UNICOMMI2CC_CTR_ACK_ENABLE |
Last received data byte of a transaction is not ACKed automatically |
DL_I2CC_ACK_DISABLE |
UNICOMMI2CC_CTR_ACK_DISABLE |
Last received data byte of a transaction is ACKed automatically |
enum DL_I2CC_TX_FIFO_LEVEL
Enumerator |
Value |
Description |
|---|---|---|
DL_I2CC_TX_FIFO_LEVEL_3_4_EMPTY |
UNICOMMI2CC_IFLS_TXIFLSEL_LVL_3_4 |
Interrupt triggers when FIFO <= 3/4 empty |
DL_I2CC_TX_FIFO_LEVEL_1_2_EMPTY |
UNICOMMI2CC_IFLS_TXIFLSEL_LVL_1_2 |
Interrupt triggers when FIFO <= 1/2 empty |
DL_I2CC_TX_FIFO_LEVEL_1_4_EMPTY |
UNICOMMI2CC_IFLS_TXIFLSEL_LVL_1_4 |
Interrupt triggers when FIFO <= 1/4 empty |
DL_I2CC_TX_FIFO_LEVEL_NOT_FULL |
UNICOMMI2CC_IFLS_TXIFLSEL_LVL_NOT_FULL |
Interrupt triggers when FIFO is not full |
DL_I2CC_TX_FIFO_LEVEL_EMPTY |
UNICOMMI2CC_IFLS_TXIFLSEL_LVL_EMPTY |
Interrupt triggers when FIFO is empty |
DL_I2CC_TX_FIFO_LEVEL_ALMOST_EMPTY |
UNICOMMI2CC_IFLS_TXIFLSEL_LVL_ALMOST_EMPTY |
Interrupt triggers when FIFO is almost empty (FIFO <= 1) |
DL_I2CC_TX_FIFO_LEVEL_ALMOST_FULL |
UNICOMMI2CC_IFLS_TXIFLSEL_LVL_ALMOST_FULL |
Interrupt triggers when FIFO is almost full (FIFO >= (MAX_FIFO_LEN - 1)) |
enum DL_I2CC_RX_FIFO_LEVEL
Enumerator |
Value |
Description |
|---|---|---|
DL_I2CC_RX_FIFO_LEVEL_3_4_FULL |
UNICOMMI2CC_IFLS_RXIFLSEL_LVL_3_4 |
Interrupt triggers when FIFO >= 3/4 Full |
DL_I2CC_RX_FIFO_LEVEL_1_2_FULL |
UNICOMMI2CC_IFLS_RXIFLSEL_LVL_1_2 |
Interrupt triggers when FIFO >= 1/2 Full |
DL_I2CC_RX_FIFO_LEVEL_1_4_FULL |
UNICOMMI2CC_IFLS_RXIFLSEL_LVL_1_4 |
Interrupt triggers when FIFO >= 1/4 Full |
DL_I2CC_RX_FIFO_LEVEL_NOT_EMPTY |
UNICOMMI2CC_IFLS_RXIFLSEL_LVL_NOT_EMPTY |
Interrupt triggers when FIFO is not empty |
DL_I2CC_RX_FIFO_LEVEL_FULL |
UNICOMMI2CC_IFLS_RXIFLSEL_LVL_FULL |
Interrupt triggers when FIFO is full |
DL_I2CC_RX_FIFO_LEVEL_ALMOST_EMPTY |
UNICOMMI2CC_IFLS_RXIFLSEL_LVL_ALMOST_EMPTY |
Interrupt triggers when FIFO is almost empty (FIFO <= 1) |
DL_I2CC_RX_FIFO_LEVEL_ALMOST_FULL |
UNICOMMI2CC_IFLS_RXIFLSEL_LVL_ALMOST_FULL |
Interrupt triggers when FIFO is almost full (FIFO >= (MAX_FIFO_LEN - 1)) |
enum DL_I2CC_IIDX
Enumerator |
Value |
Description |
|---|---|---|
DL_I2CC_IIDX_NO_INT |
UNICOMMI2CC_IIDX_STAT_NO_INTR |
Interrupt index for I2CC if no interrupt is pending |
DL_I2CC_IIDX_RX_DONE |
UNICOMMI2CC_IIDX_STAT_RXDONEFG |
Interrupt index for I2CC Receive Transaction completed |
DL_I2CC_IIDX_TX_DONE |
UNICOMMI2CC_IIDX_STAT_TXDONEFG |
Interrupt index for Transmit Transaction completed |
DL_I2CC_IIDX_RXFIFO_TRIGGER |
UNICOMMI2CC_IIDX_STAT_RXTRG |
Interrupt index for I2CC Receive FIFO Trigger |
DL_I2CC_IIDX_TXFIFO_TRIGGER |
UNICOMMI2CC_IIDX_STAT_TXTRG |
Interrupt index for I2CC Transmit FIFO Trigger |
DL_I2CC_IIDX_RXFIFO_FULL |
UNICOMMI2CC_IIDX_STAT_RXFULL |
Interrupt index for I2CC Receive when FIFO is full |
DL_I2CC_IIDX_TXFIFO_EMPTY |
UNICOMMI2CC_IIDX_STAT_TXEMPTY |
Interrupt index for I2CC when Transmit FIFO is empty |
DL_I2CC_IIDX_NACK |
UNICOMMI2CC_IIDX_STAT_NACKFG |
Interrupt index for Address/Data NACK |
DL_I2CC_IIDX_START |
UNICOMMI2CC_IIDX_STAT_STARTFG |
Interrupt index for I2CC START Detection |
DL_I2CC_IIDX_STOP |
UNICOMMI2CC_IIDX_STAT_STOPFG |
Interrupt index for I2CC STOP Detection |
DL_I2CC_IIDX_ARBITRATION_LOST |
UNICOMMI2CC_IIDX_STAT_ARBLOSTFG |
Interrupt index for I2CC Arbitration Lost |
DL_I2CC_IIDX_EVENT1_DMA_DONE |
UNICOMMI2CC_IIDX_STAT_DMA_DONE_TX |
Interrupt index for I2CC Event 1 DMA Done |
DL_I2CC_IIDX_EVENT2_DMA_DONE |
UNICOMMI2CC_IIDX_STAT_DMA_DONE_RX |
Interrupt index for I2CC Event 2 DMA Done |
DL_I2CC_IIDX_PREEMPT_INT_TX |
UNICOMMI2CC_IIDX_STAT_DMA_PREIRQ_TX |
Interrupt index for I2CC receive pre-emptive interrupt |
DL_I2CC_IIDX_PREEMPT_INT_RX |
UNICOMMI2CC_IIDX_STAT_DMA_PREIRQ_RX |
Interrupt index for I2CC receive pre-emptive interrupt |
DL_I2CC_IIDX_PEC_RX_ERROR |
UNICOMMI2CC_IIDX_STAT_PEC_RX_ERR |
Interrupt index for I2CC SMBus/PMBus PEC Receive Error Event |
DL_I2CC_IIDX_TIMEOUT_A |
UNICOMMI2CC_IIDX_STAT_TIMEOUTA |
Interrupt index for I2CC Timeout A Event |
DL_I2CC_IIDX_TIMEOUT_B |
UNICOMMI2CC_IIDX_STAT_TIMEOUTB |
Interrupt index for I2CC Timeout B Event |
Functions Documentation
function DL_I2CC_setClockConfig
void DL_I2CC_setClockConfig(
DL_UNICOMM_Inst_Regs * unicomm,
DL_I2CC_ClockConfig * config
)
Configure I2CC source clock.
Parameters:
unicomm Pointer to the register overlay for the peripheral
config Pointer to the clock configuration struct DL_I2CC_ClockConfig.
function DL_I2CC_getClockConfig
void DL_I2CC_getClockConfig(
DL_UNICOMM_Inst_Regs * unicomm,
DL_I2CC_ClockConfig * config
)
Get I2CC source clock configuration.
Parameters:
unicomm Pointer to the register overlay for the peripheral
config Pointer to the clock configuration struct DL_I2CC_ClockConfig.
function DL_I2CC_fillTXFIFO
uint16_t DL_I2CC_fillTXFIFO(
DL_UNICOMM_Inst_Regs * unicomm,
uint8_t * buffer,
uint16_t count
)
Fills the TX FIFO with data.
Parameters:
unicomm Pointer to the register overlay for the peripheral
buffer Pointer to buffer of bytes
count Number of bytes to fill TX FIFO from buffer
Return: Number of bytes that were successfully written
function DL_I2CC_flushTXFIFO
void DL_I2CC_flushTXFIFO(
DL_UNICOMM_Inst_Regs * unicomm
)
Flushes/removes all elements in the controller TX FIFO.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_I2CC_flushRXFIFO
void DL_I2CC_flushRXFIFO(
DL_UNICOMM_Inst_Regs * unicomm
)
Flushes/removes all elements in the controller RX FIFO.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_I2CC_isTXFIFOFull
__STATIC_INLINE bool DL_I2CC_isTXFIFOFull(
DL_UNICOMM_Inst_Regs * unicomm
)
Checks if TX FIFO is full.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
true if TX FIFO is full
false if TX FIFO is not full
Return: If TX FIFO is full
function DL_I2CC_isTXFIFOEmpty
__STATIC_INLINE bool DL_I2CC_isTXFIFOEmpty(
DL_UNICOMM_Inst_Regs * unicomm
)
Checks if TX FIFO is empty.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
true if TX FIFO is empty
false if TX FIFO is not empty
Return: If TX FIFO is empty
function DL_I2CC_isRXFIFOEmpty
__STATIC_INLINE bool DL_I2CC_isRXFIFOEmpty(
DL_UNICOMM_Inst_Regs * unicomm
)
Checks if RX FIFO is empty.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
true if RX FIFO is empty
false if RX FIFO is not empty
Return: If RX FIFO is empty
function DL_I2CC_resetTransfer
__STATIC_INLINE void DL_I2CC_resetTransfer(
DL_UNICOMM_Inst_Regs * unicomm
)
Reset transfers from from UNICOMMI2CC.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Resets transfer register to initialize UNICOMMI2CC
function DL_I2CC_startTransfer
__STATIC_INLINE void DL_I2CC_startTransfer(
DL_UNICOMM_Inst_Regs * unicomm,
uint32_t targetAddr,
DL_I2CC_DIRECTION direction,
uint16_t length
)
Sets up a transfer from UNICOMMI2CC.
Parameters:
unicomm Pointer to the register overlay for the peripheral
targetAddr Target address [0x00, 0x3FF]
direction One of DL_I2CC_DIRECTION
length Intended burst length in number of bytes
Note: Reading/writing data must be done separately.
Set target address, transfer direction, burst length, START+STOP generation.
function DL_I2CC_startTransferAdvanced
__STATIC_INLINE void DL_I2CC_startTransferAdvanced(
DL_UNICOMM_Inst_Regs * unicomm,
uint32_t targetAddr,
DL_I2CC_DIRECTION direction,
uint16_t length,
DL_I2CC_START start,
DL_I2CC_STOP stop,
DL_I2CC_ACK ack
)
Sets up a transfer from I2CC with control of START, STOP and ACK.
Parameters:
unicomm Pointer to the register overlay for the peripheral
targetAddr 7-bit target address [0x00, 0x7f]
direction One of DL_I2CC_DIRECTION
length Intended burst length in number of bytes
start One of DL_I2CC_START
stop One of DL_I2CC_STOP
ack One of DL_I2CC_ACK
Note: Reading/writing data must be done separately.
function DL_I2CC_enablePower
__STATIC_INLINE void DL_I2CC_enablePower(
DL_UNICOMM_Inst_Regs * unicomm
)
Enables power on UNICOMM I2C module.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_I2CC_disablePower
__STATIC_INLINE void DL_I2CC_disablePower(
DL_UNICOMM_Inst_Regs * unicomm
)
Disables power on UNICOMM I2C module.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_I2CC_isPowerEnabled
__STATIC_INLINE bool DL_I2CC_isPowerEnabled(
DL_UNICOMM_Inst_Regs * unicomm
)
Returns if power on UNICOMM I2C module.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Return:
true if power is enabled
false if power is disabled
function DL_I2CC_reset
__STATIC_INLINE void DL_I2CC_reset(
DL_UNICOMM_Inst_Regs * unicomm
)
Resets UNICOMM I2C peripheral.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_I2CC_isReset
__STATIC_INLINE bool DL_I2CC_isReset(
DL_UNICOMM_Inst_Regs * unicomm
)
Returns if UNICOMM I2C peripheral was reset.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Return:
true if peripheral was reset
false if peripheral wasn’t reset
function DL_I2CC_selectClockSource
__STATIC_INLINE void DL_I2CC_selectClockSource(
DL_UNICOMM_Inst_Regs * unicomm,
DL_I2CC_CLOCK clockSource
)
Set Clock Source.
Parameters:
unicomm Pointer to the register overlay for the peripheral
clockSource One of DL_I2CC_CLOCK.
Clock sources depend on device and clock should be enabled
function DL_I2CC_selectClockDivider
__STATIC_INLINE void DL_I2CC_selectClockDivider(
DL_UNICOMM_Inst_Regs * unicomm,
DL_I2CC_CLOCK_DIVIDE clockDivider
)
Set Clock Divider.
Parameters:
unicomm Pointer to the register overlay for the peripheral
clockDivider One of DL_I2CC_CLOCK_DIVIDE.
function DL_I2CC_getDigitalGlitchFilterPulseWidth
__STATIC_INLINE DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH DL_I2CC_getDigitalGlitchFilterPulseWidth(
DL_UNICOMM_Inst_Regs * unicomm
)
Get Digital Glitch Suppression Pulse Width.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
Return: Digital glitch suppression pulse width
Pulse width for the digital glitch suppression on SCL/SDA lines. Values are in terms of functional clock ticks.
function DL_I2CC_setDigitalGlitchFilterPulseWidth
__STATIC_INLINE void DL_I2CC_setDigitalGlitchFilterPulseWidth(
DL_UNICOMM_Inst_Regs * unicomm,
DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH filterWidth
)
Set Digital Glitch Suppression Pulse Width.
Parameters:
unicomm Pointer to the register overlay for the peripheral
filterWidth One of DL_I2CC_DIGITAL_GLITCH_FILTER_WIDTH.
Pulse width for the digital glitch suppression on SCL/SDA lines. Values are in terms of functional clock ticks.
function DL_I2CC_disableAnalogGlitchFilter
__STATIC_INLINE void DL_I2CC_disableAnalogGlitchFilter(
DL_UNICOMM_Inst_Regs * unicomm
)
Disable Analog Glitch Suppression.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_I2CC_isAnalogGlitchFilterEnabled
__STATIC_INLINE bool DL_I2CC_isAnalogGlitchFilterEnabled(
DL_UNICOMM_Inst_Regs * unicomm
)
Checks if analog glitch suppression is enabled.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
true if analog glitch suppression is enabled
false if analog glitch suppression is disabled
Return: If analog glitch suppression is enabled
function DL_I2CC_enableAnalogGlitchFilter
__STATIC_INLINE void DL_I2CC_enableAnalogGlitchFilter(
DL_UNICOMM_Inst_Regs * unicomm
)
Enable Analog Glitch Suppression.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_I2CC_getDirection
__STATIC_INLINE DL_I2CC_DIRECTION DL_I2CC_getDirection(
DL_UNICOMM_Inst_Regs * unicomm
)
Get direction of next operation.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
One of DL_I2CC_DIRECTION
Return: Direction of next operation
function DL_I2CC_setDirection
__STATIC_INLINE void DL_I2CC_setDirection(
DL_UNICOMM_Inst_Regs * unicomm,
DL_I2CC_DIRECTION direction
)
Set direction of next operation.
Parameters:
unicomm Pointer to the register overlay for the peripheral
direction Direction of next operation. One of DL_I2CC_DIRECTION.
function DL_I2CC_getTargetAddress
__STATIC_INLINE uint32_t DL_I2CC_getTargetAddress(
DL_UNICOMM_Inst_Regs * unicomm
)
Get the address of the target being addressed when configured as an UNICOMMI2CC.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
[0x000x07FE]
See: DL_I2CC_setAddressingMode
Return: The target address
Specifies bits A9 through A0 of the target address. In 7-bit addressing mode as selected by DL_I2CC_setAddressingMode, the top 3 bits are don’t care.
function DL_I2CC_setTargetAddress
__STATIC_INLINE void DL_I2CC_setTargetAddress(
DL_UNICOMM_Inst_Regs * unicomm,
uint32_t targetAddress
)
Set the address of the target being addressed when configured as an UNICOMMI2CC.
Parameters:
unicomm Pointer to the register overlay for the peripheral
targetAddress Target address to set [0x00, 0x07FE]
See: DL_I2CC_setAddressingMode
Specifies bits A9 through A0 of the target address. In 7-bit addressing mode as selected by DL_I2CC_setAddressingMode, the top 3 bits are don’t care.
function DL_I2CC_getAddressingMode
__STATIC_INLINE DL_I2CC_ADDRESSING_MODE DL_I2CC_getAddressingMode(
DL_UNICOMM_Inst_Regs * unicomm
)
Get addressing mode.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
One of DL_I2CC_ADDRESSING_MODE
Return: Addressing mode the is set to
function DL_I2CC_setAddressingMode
__STATIC_INLINE void DL_I2CC_setAddressingMode(
DL_UNICOMM_Inst_Regs * unicomm,
DL_I2CC_ADDRESSING_MODE mode
)
Set addressing mode between 7-bit and 10-bit mode.
Parameters:
unicomm Pointer to the register overlay for the peripheral
mode Addressing mode to set the target to. One of DL_I2CC_ADDRESSING_MODE.
Selects the addressing mode between 7-bit and 10-bit mode to be used when device is configured as a
function DL_I2CC_disableACKOverride
__STATIC_INLINE void DL_I2CC_disableACKOverride(
DL_UNICOMM_Inst_Regs * unicomm
)
Disable ACK override.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_I2CC_isACKOverrideEnabled
__STATIC_INLINE bool DL_I2CC_isACKOverrideEnabled(
DL_UNICOMM_Inst_Regs * unicomm
)
Checks if ACK override is enabled.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
true if ACK override is enabled
false if ACK override is disabled
Return: If ACK override is enabled
function DL_I2CC_enableACKOverride
__STATIC_INLINE void DL_I2CC_enableACKOverride(
DL_UNICOMM_Inst_Regs * unicomm
)
Enable ACK override.
Parameters:
unicomm Pointer to the register overlay for the peripheral
See: DL_I2CC_setTransactionLength
When enabled and the is receiving data and the number of bytes indicated in CTR.MBLEN have been received, the state machine will generate an RXDONE interrupt and wait at the start of the ACK for FW to indicate if an ACK or NACK should be sent. The ACK or NACK is selected by writing the CTR register and setting ACK accordingly. The other fields in this register can also be written at this time to continue on with the transaction. If a NACK is sent the state machine will automatically send a Stop.
function DL_I2CC_disableReadOnTXEmpty
__STATIC_INLINE void DL_I2CC_disableReadOnTXEmpty(
DL_UNICOMM_Inst_Regs * unicomm
)
Disable read on TX empty.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_I2CC_isReadOnTXEmptyEnabled
__STATIC_INLINE bool DL_I2CC_isReadOnTXEmptyEnabled(
DL_UNICOMM_Inst_Regs * unicomm
)
Checks if read on TX empty is enabled.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
true if read on TX empty is enabled
false if read on TX empty is disabled
Return: If read on TX empty is enabled
function DL_I2CC_enableReadOnTXEmpty
__STATIC_INLINE void DL_I2CC_enableReadOnTXEmpty(
DL_UNICOMM_Inst_Regs * unicomm
)
Enable read on TX empty.
Parameters:
unicomm Pointer to the register overlay for the peripheral
When enabled, the will transmit all bytes from the TX FIFO before continuing with the programmed Burst Run Read. If the DIR is not set to Read in the MSA then this bit is ignored. The Start must be set in the CTR for proper I2CC protocol. The will first send the Start Condition, I2CC Address with R/W bit set to write, before sending the bytes in the TX FIFO. When the TX FIFO is empty, the I2CC transaction will continue as programmed in MTCR and MSA without sending a Stop Condition. This is intended to be used to perform simple I2CC command based reads transition that will complete after initiating them without having to get an interrupt to turn the bus around.
function DL_I2CC_getPECCountValue
__STATIC_INLINE uint32_t DL_I2CC_getPECCountValue(
DL_UNICOMM_Inst_Regs * unicomm
)
Get the SMBus/PMBus Packet Error Checking (PEC) count value.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
Value between [0x0, 0x01FF]
Return: The value the PEC count is set to
function DL_I2CC_setPECCountValue
__STATIC_INLINE void DL_I2CC_setPECCountValue(
DL_UNICOMM_Inst_Regs * unicomm,
uint32_t count
)
Set the SMBus/PMBus Packet Error Checking (PEC) count value.
Parameters:
unicomm Pointer to the register overlay for the peripheral
count The value to set the PEC count to. Value between [0x0, 0x01FF]
When this field is non zero, the number of I2CC data bytes are counted. Refer to the device TRM for more details.
function DL_I2CC_disablePEC
__STATIC_INLINE void DL_I2CC_disablePEC(
DL_UNICOMM_Inst_Regs * unicomm
)
Disable SMBus/PMBus Packet Error Checking (PEC)
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_I2CC_isPECEnabled
__STATIC_INLINE bool DL_I2CC_isPECEnabled(
DL_UNICOMM_Inst_Regs * unicomm
)
Checks if SMBus/PMBus Packet Error Checking (PEC) is enabled.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
true if PEC is enabled
false if PEC is disabled
Return: If PEC is enabled
function DL_I2CC_enablePEC
__STATIC_INLINE void DL_I2CC_enablePEC(
DL_UNICOMM_Inst_Regs * unicomm
)
Enable SMBus/PMBus Packet Error Checking (PEC)
Parameters:
unicomm Pointer to the register overlay for the peripheral
When enabled, the PEC is calculated on all bits accept the Start, Stop, ACK and NACK. The PEC LSFR and the Byte Counter is set to 0 when the State Machine is in the IDLE state, which occurs following a Stop or when a timeout occurs. The Counter is also set to 0 after the PEC byte is sent or received. Note that the NACK is automatically sent following a PEC byte that results in a PEC error. The PEC Polynomial is x^8 + x^2 + x^1 + 1.
function DL_I2CC_getCurrentPECCount
__STATIC_INLINE uint32_t DL_I2CC_getCurrentPECCount(
DL_UNICOMM_Inst_Regs * unicomm
)
Get the current SMBus/PMBus PEC byte count of the state machine.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
Value between [0x0, 0x01FF]
Return: The current PEC byte count of the state machine
function DL_I2CC_getPECCheckedStatus
__STATIC_INLINE DL_I2CC_PEC_STATUS DL_I2CC_getPECCheckedStatus(
DL_UNICOMM_Inst_Regs * unicomm
)
If SMBus/PMBus PEC was checked in last transaction.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
One of DL_I2CC_PEC_STATUS
Return: Status of PEC checked in last transaction
The status of if the PEC was checked in the transaction that occurred before the last Stop. Latched on Stop.
function DL_I2CC_getPECCheckError
__STATIC_INLINE DL_I2CC_PEC_CHECK_ERROR DL_I2CC_getPECCheckError(
DL_UNICOMM_Inst_Regs * unicomm
)
Get the status of the SMBus/PMBus PEC Check error.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
One of DL_I2CC_PEC_CHECK_ERROR
Return: Status of PEC check error
The status of if a PEC check error occurred in the transaction that occurred before the last Stop. Latched on Stop.
function DL_I2CC_disableStartCondition
__STATIC_INLINE void DL_I2CC_disableStartCondition(
DL_UNICOMM_Inst_Regs * unicomm
)
Disable I2CC START generation.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_I2CC_isStartConditionEnabled
__STATIC_INLINE bool DL_I2CC_isStartConditionEnabled(
DL_UNICOMM_Inst_Regs * unicomm
)
Checks if I2CC START generation is enabled.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
true if I2CC START generation is enabled
false if I2CC START generation is disabled
Return: If I2CC START generation is enabled
function DL_I2CC_enableStartCondition
__STATIC_INLINE void DL_I2CC_enableStartCondition(
DL_UNICOMM_Inst_Regs * unicomm
)
Enable I2CC START generation.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_I2CC_disableStopCondition
__STATIC_INLINE void DL_I2CC_disableStopCondition(
DL_UNICOMM_Inst_Regs * unicomm
)
Disable I2CC STOP generation.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_I2CC_isStopConditionEnabled
__STATIC_INLINE bool DL_I2CC_isStopConditionEnabled(
DL_UNICOMM_Inst_Regs * unicomm
)
Checks if I2CC STOP generation is enabled.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
true if I2CC STOP generation is enabled
false if I2CC STOP generation is disabled
Return: If I2CC STOP generation is enabled
function DL_I2CC_enableStopCondition
__STATIC_INLINE void DL_I2CC_enableStopCondition(
DL_UNICOMM_Inst_Regs * unicomm
)
Enable I2CC STOP generation.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_I2CC_disableACK
__STATIC_INLINE void DL_I2CC_disableACK(
DL_UNICOMM_Inst_Regs * unicomm
)
Disable I2CC data acknowledge (ACK or NACK)
Parameters:
unicomm Pointer to the register overlay for the peripheral
When the I2CC module operates in receiver mode, the ACK bit can be cleared when no further data needs to be received from the target transmitter.
function DL_I2CC_isACKEnabled
__STATIC_INLINE bool DL_I2CC_isACKEnabled(
DL_UNICOMM_Inst_Regs * unicomm
)
Checks if I2CC data acknowledge (ACK or NACK) is enabled.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
true if I2CC data acknowledge is enabled
false if I2CC data acknowledge is disabled
Return: If I2CC data acknowledge is enabled
function DL_I2CC_enableACK
__STATIC_INLINE void DL_I2CC_enableACK(
DL_UNICOMM_Inst_Regs * unicomm
)
Enable I2CC data acknowledge (ACK or NACK)
Parameters:
unicomm Pointer to the register overlay for the peripheral
When the I2CC module operates in receiver mode, the ACK bit is normally set causing the I2CC bus to transmit an acknowledge automatically after each byte.
function DL_I2CC_getTransactionLength
__STATIC_INLINE uint32_t DL_I2CC_getTransactionLength(
DL_UNICOMM_Inst_Regs * unicomm
)
Get transaction length in bytes.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
[0x0000xfff]
Return: Length of I2CC transaction in bytes
function DL_I2CC_setTransactionLength
__STATIC_INLINE void DL_I2CC_setTransactionLength(
DL_UNICOMM_Inst_Regs * unicomm,
uint32_t length
)
Set transaction length in bytes.
Parameters:
unicomm Pointer to the register overlay for the peripheral
length Length of I2CC transaction in bytes [0x000, 0xfff]
function DL_I2CC_getStatus
__STATIC_INLINE uint32_t DL_I2CC_getStatus(
DL_UNICOMM_Inst_Regs * unicomm
)
Get status of I2CC bus for.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
Bitwise OR of [DL_I2CC_STATUS]
Return: Status of I2CC bus for
function DL_I2CC_getTransactionCount
__STATIC_INLINE uint16_t DL_I2CC_getTransactionCount(
DL_UNICOMM_Inst_Regs * unicomm
)
Get transaction count in bytes.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
[0x0000xfff]
Return: Current 12-bit countdown value of the transaction
function DL_I2CC_receiveData
__STATIC_INLINE uint8_t DL_I2CC_receiveData(
DL_UNICOMM_Inst_Regs * unicomm
)
Get byte of data from UNICOMMI2CC.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
[0x000xff]
Return: Last received byte of data
If using FIFO, it is first byte from the RX FIFO.
function DL_I2CC_transmitData
__STATIC_INLINE void DL_I2CC_transmitData(
DL_UNICOMM_Inst_Regs * unicomm,
uint8_t data
)
Set next byte to be transferred during the next transaction.
Parameters:
unicomm Pointer to the register overlay for the peripheral
data Data to be transferred during the next transaction. [0x00, 0xff]
Does not transmit data until DL_I2CC_startTransfer
function DL_I2CC_getTimerPeriod
__STATIC_INLINE uint8_t DL_I2CC_getTimerPeriod(
DL_UNICOMM_Inst_Regs * unicomm
)
Get timer period This field is used in the equation to configure SCL_PERIOD:
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
[0x000x7f]
Return: Timer period
SCL_PERIOD = (1 + TPR) * (SCL_LP + SCL_HP) * INT_CLK_PRD
where: SCL_PRD is the SCL line period (I2CC clock)
TPR is the Timer Period register value (range of 1 to 127)
SCL_LP is the SCL Low period (fixed at 6) SCL_HP is the SCL High period (fixed at 4)
CLK_PRD is the functional clock period in ns
function DL_I2CC_setTimerPeriod
__STATIC_INLINE void DL_I2CC_setTimerPeriod(
DL_UNICOMM_Inst_Regs * unicomm,
uint8_t period
)
Set timer period This field is used in the equation to configure SCL_PERIOD:
Parameters:
unicomm Pointer to the register overlay for the peripheral
period Timer period [0x00, 0x7f]
SCL_PERIOD = (1 + TPR) * (SCL_LP + SCL_HP) * INT_CLK_PRD
where: SCL_PRD is the SCL line period (I2CC clock)
TPR is the Timer Period register value (range of 1 to 127)
SCL_LP is the SCL Low period (fixed at 6) SCL_HP is the SCL High period (fixed at 4)
CLK_PRD is the functional clock period in ns
function DL_I2CC_disableMultiMode
__STATIC_INLINE void DL_I2CC_disableMultiMode(
DL_UNICOMM_Inst_Regs * unicomm
)
Disable multimode.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_I2CC_isMultiModeEnabled
__STATIC_INLINE bool DL_I2CC_isMultiModeEnabled(
DL_UNICOMM_Inst_Regs * unicomm
)
Checks if multimode is enabled.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
true if multimode is enabled
false if multimode is disabled
Return: If multimode is enabled
function DL_I2CC_enableMultiMode
__STATIC_INLINE void DL_I2CC_enableMultiMode(
DL_UNICOMM_Inst_Regs * unicomm
)
Enable multimode.
Parameters:
unicomm Pointer to the register overlay for the peripheral
In multimode, the SCL high time counts once the SCL line has been detected high. If this is not enabled, the high time counts as soon as the SCL line has been set high by the UNICOMMI2CC
function DL_I2CC_disable
__STATIC_INLINE void DL_I2CC_disable(
DL_UNICOMM_Inst_Regs * unicomm
)
Disable controller.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_I2CC_isEnabled
__STATIC_INLINE bool DL_I2CC_isEnabled(
DL_UNICOMM_Inst_Regs * unicomm
)
Checks if controller is enabled.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
true if is enabled
false if is disabled
Return: If is enabled
function DL_I2CC_enable
__STATIC_INLINE void DL_I2CC_enable(
DL_UNICOMM_Inst_Regs * unicomm
)
Enable controller.
Parameters:
unicomm Pointer to the register overlay for the peripheral
After has enabled, it should not be re-enabled unless it has been disabled or by a reset, otherwise transfer failures may occur.
function DL_I2CC_disableClockStretching
__STATIC_INLINE void DL_I2CC_disableClockStretching(
DL_UNICOMM_Inst_Regs * unicomm
)
Disable clock stretching.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Clock stretching can be disabled if no target on the bus supports clock stretching; however, it should be typically enabled to be compliant with I2CC specification.
function DL_I2CC_isClockStretchingEnabled
__STATIC_INLINE bool DL_I2CC_isClockStretchingEnabled(
DL_UNICOMM_Inst_Regs * unicomm
)
Checks if clock stretching is enabled.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
true if clock stretching is enabled
false if clock stretching is disabled
Return: If clock stretching is enabled
function DL_I2CC_enableClockStretching
__STATIC_INLINE void DL_I2CC_enableClockStretching(
DL_UNICOMM_Inst_Regs * unicomm
)
Enable clock stretching.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Clock stretching can be disabled if no target on the bus supports clock stretching; however, it should be typically enabled to be compliant with UNICOMMI2CC specification.
function DL_I2CC_getSCLStatus
__STATIC_INLINE DL_I2CC_SCL DL_I2CC_getSCLStatus(
DL_UNICOMM_Inst_Regs * unicomm
)
Get SCL signal status.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
One of DL_I2CC_SCL
Return: Status of SCL signal
function DL_I2CC_getSDAStatus
__STATIC_INLINE DL_I2CC_SDA DL_I2CC_getSDAStatus(
DL_UNICOMM_Inst_Regs * unicomm
)
Get SDA signal status.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
One of DL_I2CC_SDA
Return: Status of SDA signal
function DL_I2CC_getTXFIFOThreshold
__STATIC_INLINE DL_I2CC_TX_FIFO_LEVEL DL_I2CC_getTXFIFOThreshold(
DL_UNICOMM_Inst_Regs * unicomm
)
Get TX FIFO threshold level.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
One of DL_I2CC_TX_FIFO_LEVEL
Return: Indicates at what fill level in the TX FIFO a threshold will be generated
function DL_I2CC_setTXFIFOThreshold
__STATIC_INLINE void DL_I2CC_setTXFIFOThreshold(
DL_UNICOMM_Inst_Regs * unicomm,
DL_I2CC_TX_FIFO_LEVEL level
)
Set TX FIFO threshold level.
Parameters:
unicomm Pointer to the register overlay for the peripheral
level Indicates at what fill level in the TX FIFO a threshold will be generated. One of DL_I2CC_TX_FIFO_LEVEL.
function DL_I2CC_stopFlushTXFIFO
__STATIC_INLINE void DL_I2CC_stopFlushTXFIFO(
DL_UNICOMM_Inst_Regs * unicomm
)
Stop controller TX FIFO flush.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Before stopping the flush, check if DL_I2C_isControllerTXFIFOEmpty, indicating flush is complete.
function DL_I2CC_startFlushTXFIFO
__STATIC_INLINE void DL_I2CC_startFlushTXFIFO(
DL_UNICOMM_Inst_Regs * unicomm
)
Start controller TX FIFO flush.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_I2CC_getRXFIFOThreshold
__STATIC_INLINE DL_I2CC_RX_FIFO_LEVEL DL_I2CC_getRXFIFOThreshold(
DL_UNICOMM_Inst_Regs * unicomm
)
Get RX FIFO threshold level.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
One of DL_I2CC_RX_FIFO_LEVEL
Return: Indicates at what fill level in the RX FIFO a threshold will be generated
function DL_I2CC_setRXFIFOThreshold
__STATIC_INLINE void DL_I2CC_setRXFIFOThreshold(
DL_UNICOMM_Inst_Regs * unicomm,
DL_I2CC_RX_FIFO_LEVEL level
)
Set RX FIFO threshold level.
Parameters:
unicomm Pointer to the register overlay for the peripheral
level Indicates at what fill level in the RX FIFO a threshold will be generated. One of DL_I2CC_RX_FIFO_LEVEL.
function DL_I2CC_stopFlushRXFIFO
__STATIC_INLINE void DL_I2CC_stopFlushRXFIFO(
DL_UNICOMM_Inst_Regs * unicomm
)
Stop controller RX FIFO flush.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Before stopping the flush, check if DL_I2C_isControllerRXFIFOEmpty, indicating flush is complete.
function DL_I2CC_startFlushRXFIFO
__STATIC_INLINE void DL_I2CC_startFlushRXFIFO(
DL_UNICOMM_Inst_Regs * unicomm
)
Start controller RX FIFO flush.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_I2CC_getRXFIFOCounter
__STATIC_INLINE uint32_t DL_I2CC_getRXFIFOCounter(
DL_UNICOMM_Inst_Regs * unicomm
)
Get number of bytes which can be read from RX FIFO.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
[0x00x8]
Return: Number of bytes which can be read from RX FIFO
function DL_I2CC_getTXFIFOCounter
__STATIC_INLINE uint32_t DL_I2CC_getTXFIFOCounter(
DL_UNICOMM_Inst_Regs * unicomm
)
Get number of bytes which can be put into TX FIFO.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
[0x00x8]
Return: Number of bytes which can be put into TX FIFO
function DL_I2CC_isRXFIFOFlushActive
__STATIC_INLINE bool DL_I2CC_isRXFIFOFlushActive(
DL_UNICOMM_Inst_Regs * unicomm
)
Checks if controller RX FIFO flush is active.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
true if controller RX FIFO flush is active
false if controller RX FIFO flush is not active
Return: If controller RX FIFO flush is active
function DL_I2CC_isTXFIFOFlushActive
__STATIC_INLINE bool DL_I2CC_isTXFIFOFlushActive(
DL_UNICOMM_Inst_Regs * unicomm
)
Checks if controller TX FIFO flush is active.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
true if controller TX FIFO flush is active
false if controller TX FIFO flush is not active
Return: If controller TX FIFO flush is active
function DL_I2CC_enableInterrupt
__STATIC_INLINE void DL_I2CC_enableInterrupt(
DL_UNICOMM_Inst_Regs * unicomm,
uint32_t interruptMask
)
Enable I2CC interrupts.
Parameters:
unicomm Pointer to the register overlay for the peripheral
interruptMask Bit mask of interrupts to enable. Bitwise OR of [DL_I2CC_INTERRUPT].
function DL_I2CC_disableInterrupt
__STATIC_INLINE void DL_I2CC_disableInterrupt(
DL_UNICOMM_Inst_Regs * unicomm,
uint32_t interruptMask
)
Disable I2CC interrupts.
Parameters:
unicomm Pointer to the register overlay for the peripheral
interruptMask Bit mask of interrupts to disable. Bitwise OR of [DL_I2CC_INTERRUPT].
function DL_I2CC_getEnabledInterrupts
__STATIC_INLINE uint32_t DL_I2CC_getEnabledInterrupts(
DL_UNICOMM_Inst_Regs * unicomm,
uint32_t interruptMask
)
Check which I2CC interrupts are enabled.
Parameters:
unicomm Pointer to the register overlay for the peripheral
interruptMask Bit mask of interrupts to check. Bitwise OR of [DL_I2CC_INTERRUPT].
Returns:
Bitwise OR of [DL_I2CC_INTERRUPT] values
Return: Which of the requested I2CC interrupts are enabled
function DL_I2CC_getEnabledInterruptStatus
__STATIC_INLINE uint32_t DL_I2CC_getEnabledInterruptStatus(
DL_UNICOMM_Inst_Regs * unicomm,
uint32_t interruptMask
)
Check interrupt flag of enabled I2CC interrupts.
Parameters:
unicomm Pointer to the register overlay for the peripheral
interruptMask Bit mask of interrupts to check. Bitwise OR of [DL_I2CC_INTERRUPT].
Returns:
Bitwise OR of [DL_I2CC_INTERRUPT] values
Return: Which of the requested I2CC interrupts are pending
Checks if any of the I2CC interrupts that were previously enabled are pending.
function DL_I2CC_getRawInterruptStatus
__STATIC_INLINE uint32_t DL_I2CC_getRawInterruptStatus(
DL_UNICOMM_Inst_Regs * unicomm,
uint32_t interruptMask
)
Check interrupt flag of any I2CC interrupt.
Parameters:
unicomm Pointer to the register overlay for the peripheral
interruptMask Bit mask of interrupts to check. Bitwise OR of [DL_I2CC_INTERRUPT].
Returns:
Bitwise OR of [DL_I2CC_INTERRUPT] values
Return: Which of the requested I2CC interrupts are pending
Checks if any of the I2CC interrupts are pending. Interrupts do not have to be previously enabled.
function DL_I2CC_getPendingInterrupt
__STATIC_INLINE DL_I2CC_IIDX DL_I2CC_getPendingInterrupt(
DL_UNICOMM_Inst_Regs * unicomm
)
Get highest priority pending I2CC interrupt.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
One of DL_I2CC_IIDX
Return: The highest priority pending I2CC interrupt
Checks if any of the I2CC interrupts are pending. Interrupts do not have to be previously enabled.
function DL_I2CC_clearInterruptStatus
__STATIC_INLINE void DL_I2CC_clearInterruptStatus(
DL_UNICOMM_Inst_Regs * unicomm,
uint32_t interruptMask
)
Clear pending I2CC interrupts.
Parameters:
unicomm Pointer to the register overlay for the peripheral
interruptMask Bit mask of interrupts to clear. Bitwise OR of [DL_I2CC_INTERRUPT].
function DL_I2CC_enableDMAEvent
__STATIC_INLINE void DL_I2CC_enableDMAEvent(
DL_UNICOMM_Inst_Regs * unicomm,
DL_I2CC_EVENT_ROUTE index,
uint32_t interrupt
)
Enables I2CC interrupt for triggering DMA events.
Parameters:
unicomm Pointer to the register overlay for the peripheral
index Specifies the register event publisher to configure
interrupt Interrupt to enable as the trigger condition for the DMA. One of [DL_I2CC_DMA_INTERRUPT].
Note: Only one interrupt source should be enabled at a time.
Enables the I2CC interrupt to be used as the condition to generate an event to directly trigger the DMA.
Each event publisher DL_I2CC_EVENT_ROUTE can set any one of [DL_I2CC_DMA_INTERRUPT].
function DL_I2CC_disableDMAEvent
__STATIC_INLINE void DL_I2CC_disableDMAEvent(
DL_UNICOMM_Inst_Regs * unicomm,
DL_I2CC_EVENT_ROUTE index,
uint32_t interrupt
)
Disables I2CC interrupt from triggering DMA events.
Parameters:
unicomm Pointer to the register overlay for the peripheral
index Specifies the register event publisher to configure
interrupt Interrupt to disable as the trigger condition for the DMA. One of [DL_I2CC_DMA_INTERRUPT].
Disables the I2CC interrupt from being used as the condition to generate an event to directly trigger the DMA.
Each event publisher DL_I2CC_EVENT_ROUTE can set any one of [DL_I2CC_DMA_INTERRUPT].
function DL_I2CC_getEnabledDMAEvents
__STATIC_INLINE uint32_t DL_I2CC_getEnabledDMAEvents(
DL_UNICOMM_Inst_Regs * unicomm,
DL_I2CC_EVENT_ROUTE index,
uint32_t interruptMask
)
Check which I2CC interrupt for DMA receive events is enabled.
Parameters:
unicomm Pointer to the register overlay for the peripheral
index Specifies the register event publisher to configure
interruptMask Bit mask of interrupts to check. Bitwise OR of [DL_I2CC_DMA_INTERRUPT].
Returns:
One of [DL_I2CC_DMA_INTERRUPT]
Return: The requested I2CC interrupt status
Note: Only one interrupt source should be enabled at a time.
This API checks the event publisher register as selected by DL_I2CC_EVENT_ROUTE, which are used for triggering the DMA for or Target and receive or transmit events.
function DL_I2CC_getEnabledDMAEventStatus
__STATIC_INLINE uint32_t DL_I2CC_getEnabledDMAEventStatus(
DL_UNICOMM_Inst_Regs * unicomm,
DL_I2CC_EVENT_ROUTE index,
uint32_t interruptMask
)
Check interrupt flag of enabled I2CC interrupt for DMA event.
Parameters:
unicomm Pointer to the register overlay for the peripheral
index Specifies the register event publisher to configure
interruptMask Bit mask of interrupts to check. Bitwise OR of [DL_I2CC_DMA_INTERRUPT].
Returns:
One of [DL_I2CC_DMA_INTERRUPT]
Return: The requested I2CC interrupt status
Note: Only one interrupt source should be enabled at a time.
Checks if any of the I2CC interrupts for the DMA receive event that were previously enabled are pending. This API checks the event publisher register as selected by DL_I2CC_EVENT_ROUTE, which are used for triggering the DMA for or Target and receive or transmit events.
function DL_I2CC_getRawDMAEventStatus
__STATIC_INLINE uint32_t DL_I2CC_getRawDMAEventStatus(
DL_UNICOMM_Inst_Regs * unicomm,
DL_I2CC_EVENT_ROUTE index,
uint32_t interruptMask
)
Check interrupt flag of any I2CC interrupt for DMA event.
Parameters:
unicomm Pointer to the register overlay for the peripheral
index Specifies the register event publisher to configure
interruptMask Bit mask of interrupts to check. Bitwise OR of [DL_I2CC_DMA_INTERRUPT].
Returns:
Bitwise OR of [DL_I2CC_DMA_INTERRUPT] values
Return: Which of the requested I2CC interrupts are pending
Checks if any of the I2CC interrupts for DMA receive event are pending. Interrupts do not have to be previously enabled. This API checks the event publisher register as selected by DL_I2CC_EVENT_ROUTE, which are used for triggering the DMA for or Target and receive or transmit events.
function DL_I2CC_getTimeoutACount
__STATIC_INLINE uint32_t DL_I2CC_getTimeoutACount(
DL_UNICOMM_Inst_Regs * unicomm
)
Get the Timeout Counter A value.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
Value between [0x0, 0xFF]
Return: The Timeout A counter value
function DL_I2CC_setTimeoutACount
__STATIC_INLINE void DL_I2CC_setTimeoutACount(
DL_UNICOMM_Inst_Regs * unicomm,
uint32_t count
)
Set the Timeout Counter A value.
Parameters:
unicomm Pointer to the register overlay for the peripheral
count The value to set the Timeout A counter to. Value between [0x0, 0xFF]
Timeout A is used for SCL low detection. This field contains the upper 8 bits of a 12-bit pre-load value for the Timeout A count. NOTE: The value of the counter must be greater than 1 to enable the timeout. Each count is equal to 520 times the timeout period of the functional clock. For example, with 8MHz functional clock and a 100KHz operating I2CC clock, one timeout period will be equal to (1 / 8MHz) * 520 = 65us.
function DL_I2CC_disableTimeoutA
__STATIC_INLINE void DL_I2CC_disableTimeoutA(
DL_UNICOMM_Inst_Regs * unicomm
)
Disable Timeout Counter A.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_I2CC_isTimeoutAEnabled
__STATIC_INLINE bool DL_I2CC_isTimeoutAEnabled(
DL_UNICOMM_Inst_Regs * unicomm
)
Checks if Timeout Counter A is enabled.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
true if Timeout Counter A is enabled
false if Timeout Counter A is disabled
Return: If Timeout Counter A is enabled
function DL_I2CC_enableTimeoutA
__STATIC_INLINE void DL_I2CC_enableTimeoutA(
DL_UNICOMM_Inst_Regs * unicomm
)
Enable Timeout Counter A.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_I2CC_getCurrentTimeoutACounter
__STATIC_INLINE uint32_t DL_I2CC_getCurrentTimeoutACounter(
DL_UNICOMM_Inst_Regs * unicomm
)
Get the current Timer Counter A value.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
Value between [0x0, 0xFF]
Return: The Timeout A counter value
This field contains the upper 8 bits of a 12-bit current counter for Timeout Counter A.
function DL_I2CC_getTimeoutBCount
__STATIC_INLINE uint32_t DL_I2CC_getTimeoutBCount(
DL_UNICOMM_Inst_Regs * unicomm
)
Get the Timeout Counter B value.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
Value between [0x0, 0xFF]
Return: The Timeout B counter value
function DL_I2CC_setTimeoutBCount
__STATIC_INLINE void DL_I2CC_setTimeoutBCount(
DL_UNICOMM_Inst_Regs * unicomm,
uint32_t count
)
Set the Timeout Counter B value.
Parameters:
unicomm Pointer to the register overlay for the peripheral
count The value to set the Timeout A counter to. Value between [0x0, 0xFF]
Timeout B is used for SCL high detection. This field contains the upper 8 bits of a 12-bit pre-load value for the Timeout A count. NOTE: The value of the counter must be greater than 1 to enable the timeout. Each count is equal to 1* clock period. For example, with 10MHz functional clock one timeout period will be equal to 1 * 10ns.
function DL_I2CC_disableTimeoutB
__STATIC_INLINE void DL_I2CC_disableTimeoutB(
DL_UNICOMM_Inst_Regs * unicomm
)
Disable Timeout Counter B.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_I2CC_isTimeoutBEnabled
__STATIC_INLINE bool DL_I2CC_isTimeoutBEnabled(
DL_UNICOMM_Inst_Regs * unicomm
)
Checks if Timeout Counter B is enabled.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
true if Timeout Counter B is enabled
false if Timeout Counter B is disabled
Return: If Timeout Counter B is enabled
function DL_I2CC_enableTimeoutB
__STATIC_INLINE void DL_I2CC_enableTimeoutB(
DL_UNICOMM_Inst_Regs * unicomm
)
Enable Timeout Counter B.
Parameters:
unicomm Pointer to the register overlay for the peripheral
function DL_I2CC_getCurrentTimeoutBCounter
__STATIC_INLINE uint32_t DL_I2CC_getCurrentTimeoutBCounter(
DL_UNICOMM_Inst_Regs * unicomm
)
Get the current Timer Counter B value.
Parameters:
unicomm Pointer to the register overlay for the peripheral
Returns:
Value between [0x0, 0xFF]
Return: The Timeout B counter value
This field contains the upper 8 bits of a 12-bit current counter for Timeout Counter B.
Macros Documentation
define DL_I2C_CONTROLLER_STATUS_BUSY
#define DL_I2C_CONTROLLER_STATUS_BUSY DL_I2CC_STATUS_BUSY
Redirects to DL_I2CC_STATUS_BUSY
define DL_I2C_CONTROLLER_STATUS_ERROR
#define DL_I2C_CONTROLLER_STATUS_ERROR DL_I2CC_STATUS_ERROR
Redirects to DL_I2CC_STATUS_ERROR
define DL_I2C_CONTROLLER_STATUS_ADDR_ACK
#define DL_I2C_CONTROLLER_STATUS_ADDR_ACK DL_I2CC_STATUS_ADDR_ACK
Redirects to DL_I2CC_STATUS_ADDR_ACK
define DL_I2C_CONTROLLER_STATUS_DATA_ACK
#define DL_I2C_CONTROLLER_STATUS_DATA_ACK DL_I2CC_STATUS_DATA_ACK
Redirects to DL_I2CC_STATUS_DATA_ACK
define DL_I2C_CONTROLLER_STATUS_ARBITRATION_LOST
#define DL_I2C_CONTROLLER_STATUS_ARBITRATION_LOST DL_I2CC_STATUS_ARBITRATION_LOST
Redirects to DL_I2CC_STATUS_ARBITRATION_LOST
define DL_I2C_CONTROLLER_STATUS_IDLE
#define DL_I2C_CONTROLLER_STATUS_IDLE DL_I2CC_STATUS_IDLE
Redirects to DL_I2CC_STATUS_IDLE
define DL_I2C_CONTROLLER_STATUS_BUSY_BUS
#define DL_I2C_CONTROLLER_STATUS_BUSY_BUS DL_I2CC_STATUS_BUSY_BUS
Redirects to DL_I2CC_STATUS_BUSY_BUS
define DL_I2C_INTERRUPT_CONTROLLER_RX_DONE
#define DL_I2C_INTERRUPT_CONTROLLER_RX_DONE DL_I2CC_INTERRUPT_RX_DONE
Redirects to DL_I2CC_INTERRUPT_RX_DONE
define DL_I2C_INTERRUPT_CONTROLLER_TX_DONE
#define DL_I2C_INTERRUPT_CONTROLLER_TX_DONE DL_I2CC_INTERRUPT_TX_DONE
Redirects to DL_I2CC_INTERRUPT_TX_DONE
define DL_I2C_INTERRUPT_CONTROLLER_NACK
#define DL_I2C_INTERRUPT_CONTROLLER_NACK DL_I2CC_INTERRUPT_NACK
Redirects to DL_I2CC_INTERRUPT_NACK
define DL_I2C_INTERRUPT_CONTROLLER_START
#define DL_I2C_INTERRUPT_CONTROLLER_START DL_I2CC_INTERRUPT_START
Redirects to DL_I2CC_INTERRUPT_START
define DL_I2C_INTERRUPT_CONTROLLER_STOP
#define DL_I2C_INTERRUPT_CONTROLLER_STOP DL_I2CC_INTERRUPT_STOP
Redirects to DL_I2CC_INTERRUPT_STOP
define DL_I2C_CONTROLLER_DIRECTION
#define DL_I2C_CONTROLLER_DIRECTION DL_I2CC_DIRECTION
Redirects to DL_I2CC_DIRECTION
define DL_I2C_CONTROLLER_ADDRESSING_MODE
#define DL_I2C_CONTROLLER_ADDRESSING_MODE DL_I2CC_ADDRESSING_MODE
Redirects to DL_I2CC_ADDRESSING_MODE
define DL_I2C_CONTROLLER_PEC_STATUS
#define DL_I2C_CONTROLLER_PEC_STATUS DL_I2CC_PEC_STATUS
Redirects to DL_I2CC_PEC_STATUS
define DL_I2C_CONTROLLER_PEC_CHECK_ERROR
#define DL_I2C_CONTROLLER_PEC_CHECK_ERROR DL_I2CC_PEC_CHECK_ERROR
Redirects to DL_I2CC_PEC_CHECK_ERROR
define DL_I2C_CONTROLLER_SCL
#define DL_I2C_CONTROLLER_SCL DL_I2CC_SCL
Redirects to DL_I2CC_SCL
define DL_I2C_CONTROLLER_SDA
#define DL_I2C_CONTROLLER_SDA DL_I2CC_SDA
Redirects to DL_I2CC_SDA
define DL_I2C_INTERRUPT_CONTROLLER_RXFIFO_TRIGGER
#define DL_I2C_INTERRUPT_CONTROLLER_RXFIFO_TRIGGER DL_I2CC_INTERRUPT_RXFIFO_TRIGGER
Redirects to DL_I2CC_INTERRUPT_RXFIFO_TRIGGER
define DL_I2C_INTERRUPT_CONTROLLER_TXFIFO_TRIGGER
#define DL_I2C_INTERRUPT_CONTROLLER_TXFIFO_TRIGGER DL_I2CC_INTERRUPT_TXFIFO_TRIGGER
Redirects to DL_I2CC_INTERRUPT_TXFIFO_TRIGGER
define DL_I2C_INTERRUPT_CONTROLLER_RXFIFO_FULL
#define DL_I2C_INTERRUPT_CONTROLLER_RXFIFO_FULL DL_I2CC_INTERRUPT_RXFIFO_FULL
Redirects to DL_I2CC_INTERRUPT_RXFIFO_FULL
define DL_I2C_INTERRUPT_CONTROLLER_TXFIFO_EMPTY
#define DL_I2C_INTERRUPT_CONTROLLER_TXFIFO_EMPTY DL_I2CC_INTERRUPT_TXFIFO_EMPTY
Redirects to DL_I2CC_INTERRUPT_TXFIFO_EMPTY
define DL_I2C_INTERRUPT_CONTROLLER_ARBITRATION_LOST
#define DL_I2C_INTERRUPT_CONTROLLER_ARBITRATION_LOST DL_I2CC_INTERRUPT_ARBITRATION_LOST
Redirects to DL_I2CC_INTERRUPT_ARBITRATION_LOST
define DL_I2C_INTERRUPT_CONTROLLER_EVENT1_DMA_DONE
#define DL_I2C_INTERRUPT_CONTROLLER_EVENT1_DMA_DONE DL_I2CC_INTERRUPT_EVENT1_DMA_DONE
Redirects to DL_I2CC_INTERRUPT_EVENT1_DMA_DONE
define DL_I2C_INTERRUPT_CONTROLLER_EVENT2_DMA_DONE
#define DL_I2C_INTERRUPT_CONTROLLER_EVENT2_DMA_DONE DL_I2CC_INTERRUPT_EVENT2_DMA_DONE
Redirects to DL_I2CC_INTERRUPT_EVENT2_DMA_DONE
define DL_I2C_INTERRUPT_CONTROLLER_PEC_RX_ERROR
#define DL_I2C_INTERRUPT_CONTROLLER_PEC_RX_ERROR DL_I2CC_INTERRUPT_PEC_RX_ERROR
Redirects to DL_I2CC_INTERRUPT_PEC_RX_ERROR
define DL_I2C_DMA_INTERRUPT_CONTROLLER_TXFIFO_TRIGGER
#define DL_I2C_DMA_INTERRUPT_CONTROLLER_TXFIFO_TRIGGER DL_I2CC_DMA_INTERRUPT_TXFIFO_TRIGGER
Redirects to DL_I2CC_DMA_INTERRUPT_TXFIFO_TRIGGER
define DL_I2C_DMA_INTERRUPT_CONTROLLER_RXFIFO_TRIGGER
#define DL_I2C_DMA_INTERRUPT_CONTROLLER_RXFIFO_TRIGGER DL_I2CC_DMA_INTERRUPT_RXFIFO_TRIGGER
Redirects to DL_I2CC_DMA_INTERRUPT_RXFIFO_TRIGGER
define DL_I2C_CONTROLLER_DIRECTION_TX
#define DL_I2C_CONTROLLER_DIRECTION_TX DL_I2CC_DIRECTION_TX
Redirects to DL_I2CC_DIRECTION_TX
define DL_I2C_CONTROLLER_DIRECTION_RX
#define DL_I2C_CONTROLLER_DIRECTION_RX DL_I2CC_DIRECTION_RX
Redirects to DL_I2CC_DIRECTION_RX
define DL_I2C_CONTROLLER_ADDRESSING_MODE_7_BIT
#define DL_I2C_CONTROLLER_ADDRESSING_MODE_7_BIT DL_I2CC_ADDRESSING_MODE_7_BIT
Redirects to DL_I2CC_ADDRESSING_MODE_7_BIT
define DL_I2C_CONTROLLER_ADDRESSING_MODE_10_BIT
#define DL_I2C_CONTROLLER_ADDRESSING_MODE_10_BIT DL_I2CC_ADDRESSING_MODE_10_BIT
Redirects to DL_I2CC_ADDRESSING_MODE_10_BIT
define DL_I2C_CONTROLLER_PEC_STATUS_CHECKED
#define DL_I2C_CONTROLLER_PEC_STATUS_CHECKED DL_I2CC_PEC_STATUS_CHECKED
Redirects to DL_I2CC_PEC_STATUS_CHECKED
define DL_I2C_CONTROLLER_PEC_STATUS_NOT_CHECKED
#define DL_I2C_CONTROLLER_PEC_STATUS_NOT_CHECKED DL_I2CC_PEC_STATUS_NOT_CHECKED
Redirects to DL_I2CC_PEC_STATUS_NOT_CHECKED
define DL_I2C_CONTROLLER_PEC_CHECK_ERROR_SET
#define DL_I2C_CONTROLLER_PEC_CHECK_ERROR_SET DL_I2CC_PEC_CHECK_ERROR_SET
Redirects to DL_I2CC_PEC_CHECK_ERROR_SET
define DL_I2C_CONTROLLER_PEC_CHECK_ERROR_CLEARED
#define DL_I2C_CONTROLLER_PEC_CHECK_ERROR_CLEARED DL_I2CC_PEC_CHECK_ERROR_CLEARED
Redirects to DL_I2CC_PEC_CHECK_ERROR_CLEARED
define DL_I2C_CONTROLLER_SCL_HIGH
#define DL_I2C_CONTROLLER_SCL_HIGH DL_I2CC_SCL_HIGH
Redirects to DL_I2CC_SCL_HIGH
define DL_I2C_CONTROLLER_SCL_LOW
#define DL_I2C_CONTROLLER_SCL_LOW DL_I2CC_SCL_LOW
Redirects to DL_I2CC_SCL_LOW
define DL_I2C_CONTROLLER_SDA_HIGH
#define DL_I2C_CONTROLLER_SDA_HIGH DL_I2CC_SDA_HIGH
Redirects to DL_I2CC_SDA_HIGH
define DL_I2C_CONTROLLER_SDA_LOW
#define DL_I2C_CONTROLLER_SDA_LOW DL_I2CC_SDA_LOW
Redirects to DL_I2CC_SDA_LOW
define DL_I2C_CONTROLLER_START_ENABLE
#define DL_I2C_CONTROLLER_START_ENABLE DL_I2CC_START_ENABLE
Redirects to DL_I2CC_START_ENABLE
define DL_I2C_CONTROLLER_START_DISABLE
#define DL_I2C_CONTROLLER_START_DISABLE DL_I2CC_START_DISABLE
Redirects to DL_I2CC_START_DISABLE
define DL_I2C_CONTROLLER_ACK_ENABLE
#define DL_I2C_CONTROLLER_ACK_ENABLE DL_I2CC_ACK_ENABLE
Redirects to DL_I2CC_ACK_ENABLE
define DL_I2C_CONTROLLER_ACK_DISABLE
#define DL_I2C_CONTROLLER_ACK_DISABLE DL_I2CC_ACK_DISABLE
Redirects to DL_I2CC_ACK_DISABLE
define DL_I2C_IIDX_CONTROLLER_RX_DONE
#define DL_I2C_IIDX_CONTROLLER_RX_DONE DL_I2CC_IIDX_RX_DONE
Redirects to DL_I2CC_IIDX_RX_DONE
define DL_I2C_IIDX_CONTROLLER_TX_DONE
#define DL_I2C_IIDX_CONTROLLER_TX_DONE DL_I2CC_IIDX_TX_DONE
Redirects to DL_I2CC_IIDX_TX_DONE
define DL_I2C_IIDX_CONTROLLER_RXFIFO_TRIGGER
#define DL_I2C_IIDX_CONTROLLER_RXFIFO_TRIGGER DL_I2CC_IIDX_RXFIFO_TRIGGER
Redirects to DL_I2CC_IIDX_RXFIFO_TRIGGER
define DL_I2C_IIDX_CONTROLLER_TXFIFO_TRIGGER
#define DL_I2C_IIDX_CONTROLLER_TXFIFO_TRIGGER DL_I2CC_IIDX_TXFIFO_TRIGGER
Redirects to DL_I2CC_IIDX_TXFIFO_TRIGGER
define DL_I2C_IIDX_CONTROLLER_RXFIFO_FULL
#define DL_I2C_IIDX_CONTROLLER_RXFIFO_FULL DL_I2CC_IIDX_RXFIFO_FULL
Redirects to DL_I2CC_IIDX_RXFIFO_FULL
define DL_I2C_IIDX_CONTROLLER_TXFIFO_EMPTY
#define DL_I2C_IIDX_CONTROLLER_TXFIFO_EMPTY DL_I2CC_IIDX_TXFIFO_EMPTY
Redirects to DL_I2CC_IIDX_TXFIFO_EMPTY
define DL_I2C_IIDX_CONTROLLER_NACK
#define DL_I2C_IIDX_CONTROLLER_NACK DL_I2CC_IIDX_NACK
Redirects to DL_I2CC_IIDX_NACK
define DL_I2C_IIDX_CONTROLLER_START
#define DL_I2C_IIDX_CONTROLLER_START DL_I2CC_IIDX_START
Redirects to DL_I2CC_IIDX_START
define DL_I2C_IIDX_CONTROLLER_STOP
#define DL_I2C_IIDX_CONTROLLER_STOP DL_I2CC_IIDX_STOP
Redirects to DL_I2CC_IIDX_STOP
define DL_I2C_IIDX_CONTROLLER_ARBITRATION_LOST
#define DL_I2C_IIDX_CONTROLLER_ARBITRATION_LOST DL_I2CC_IIDX_ARBITRATION_LOST
Redirects to DL_I2CC_IIDX_ARBITRATION_LOST
define DL_I2C_IIDX_CONTROLLER_EVENT1_DMA_DONE
#define DL_I2C_IIDX_CONTROLLER_EVENT1_DMA_DONE DL_I2CC_IIDX_EVENT1_DMA_DONE
Redirects to DL_I2CC_IIDX_EVENT1_DMA_DONE
define DL_I2C_IIDX_CONTROLLER_EVENT2_DMA_DONE
#define DL_I2C_IIDX_CONTROLLER_EVENT2_DMA_DONE DL_I2CC_IIDX_EVENT2_DMA_DONE
Redirects to DL_I2CC_IIDX_EVENT2_DMA_DONE
define DL_I2C_IIDX_CONTROLLER_PEC_RX_ERROR
#define DL_I2C_IIDX_CONTROLLER_PEC_RX_ERROR DL_I2CC_IIDX_PEC_RX_ERROR
Redirects to DL_I2CC_IIDX_PEC_RX_ERROR
define DL_I2C_fillControllerTXFIFO
#define DL_I2C_fillControllerTXFIFO DL_I2CC_fillTXFIFO
Redirects to DL_I2CC_fillTXFIFO
define DL_I2C_flushControllerTXFIFO
#define DL_I2C_flushControllerTXFIFO DL_I2CC_flushTXFIFO
Redirects to DL_I2CC_flushTXFIFO
define DL_I2C_flushControllerRXFIFO
#define DL_I2C_flushControllerRXFIFO DL_I2CC_flushRXFIFO
Redirects to DL_I2CC_flushRXFIFO
define DL_I2C_isControllerTXFIFOFull
#define DL_I2C_isControllerTXFIFOFull DL_I2CC_isTXFIFOFull
Redirects to DL_I2CC_isTXFIFOFull
define DL_I2C_isControllerTXFIFOEmpty
#define DL_I2C_isControllerTXFIFOEmpty DL_I2CC_isTXFIFOEmpty
Redirects to DL_I2CC_isTXFIFOEmpty
define DL_I2C_isControllerRXFIFOEmpty
#define DL_I2C_isControllerRXFIFOEmpty DL_I2CC_isRXFIFOEmpty
Redirects to DL_I2CC_isRXFIFOEmpty
define DL_I2C_resetControllerTransfer
#define DL_I2C_resetControllerTransfer DL_I2CC_resetTransfer
Redirects to DL_I2CC_resetTransfer
define DL_I2C_startControllerTransfer
#define DL_I2C_startControllerTransfer DL_I2CC_startTransfer
Redirects to DL_I2CC_startTransfer
define DL_I2C_startControllerTransferAdvanced
#define DL_I2C_startControllerTransferAdvanced DL_I2CC_startTransferAdvanced
Redirects to DL_I2CC_startTransferAdvanced
define DL_I2C_getControllerDirection
#define DL_I2C_getControllerDirection DL_I2CC_getDirection
Redirects to DL_I2CC_getDirection
define DL_I2C_setControllerDirection
#define DL_I2C_setControllerDirection DL_I2CC_setDirection
Redirects to DL_I2CC_setDirection
define DL_I2C_getControllerAddressingMode
#define DL_I2C_getControllerAddressingMode DL_I2CC_getAddressingMode
Redirects to DL_I2CC_getAddressingMode
define DL_I2C_setControllerAddressingMode
#define DL_I2C_setControllerAddressingMode DL_I2CC_setAddressingMode
Redirects to DL_I2CC_setAddressingMode
define DL_I2C_disableControllerACKOverride
#define DL_I2C_disableControllerACKOverride DL_I2CC_disableACKOverride
Redirects to DL_I2CC_disableACKOverride
define DL_I2C_isControllerACKOverrideEnabled
#define DL_I2C_isControllerACKOverrideEnabled DL_I2CC_isACKOverrideEnabled
Redirects to DL_I2CC_isACKOverrideEnabled
define DL_I2C_enableControllerACKOverride
#define DL_I2C_enableControllerACKOverride DL_I2CC_enableACKOverride
Redirects to DL_I2CC_enableACKOverride
define DL_I2C_disableControllerReadOnTXEmpty
#define DL_I2C_disableControllerReadOnTXEmpty DL_I2CC_disableReadOnTXEmpty
Redirects to DL_I2CC_disableReadOnTXEmpty
define DL_I2C_isControllerReadOnTXEmptyEnabled
#define DL_I2C_isControllerReadOnTXEmptyEnabled DL_I2CC_isReadOnTXEmptyEnabled
Redirects to DL_I2CC_isReadOnTXEmptyEnabled
define DL_I2C_enableControllerReadOnTXEmpty
#define DL_I2C_enableControllerReadOnTXEmpty DL_I2CC_enableReadOnTXEmpty
Redirects to DL_I2CC_enableReadOnTXEmpty
define DL_I2C_getControllerPECCountValue
#define DL_I2C_getControllerPECCountValue DL_I2CC_getPECCountValue
Redirects to DL_I2CC_getPECCountValue
define DL_I2C_setControllerPECCountValue
#define DL_I2C_setControllerPECCountValue DL_I2CC_setPECCountValue
Redirects to DL_I2CC_setPECCountValue
define DL_I2C_disableControllerPEC
#define DL_I2C_disableControllerPEC DL_I2CC_disablePEC
Redirects to DL_I2CC_disablePEC
define DL_I2C_isControllerPECEnabled
#define DL_I2C_isControllerPECEnabled DL_I2CC_isPECEnabled
Redirects to DL_I2CC_isPECEnabled
define DL_I2C_enableControllerPEC
#define DL_I2C_enableControllerPEC DL_I2CC_enablePEC
Redirects to DL_I2CC_enablePEC
define DL_I2C_getControllerCurrentPECCount
#define DL_I2C_getControllerCurrentPECCount DL_I2CC_getCurrentPECCount
Redirects to DL_I2CC_getCurrentPECCount
define DL_I2C_getControllerPECCheckedStatus
#define DL_I2C_getControllerPECCheckedStatus DL_I2CC_getPECCheckedStatus
Redirects to DL_I2CC_getPECCheckedStatus
define DL_I2C_getControllerPECCheckError
#define DL_I2C_getControllerPECCheckError DL_I2CC_getPECCheckError
Redirects to DL_I2CC_getPECCheckError
define DL_I2C_disableControllerACK
#define DL_I2C_disableControllerACK DL_I2CC_disableACK
Redirects to DL_I2CC_disableACK
define DL_I2C_isControllerACKEnabled
#define DL_I2C_isControllerACKEnabled DL_I2CC_isACKEnabled
Redirects to DL_I2CC_isACKEnabled
define DL_I2C_enableControllerACK
#define DL_I2C_enableControllerACK DL_I2CC_enableACK
Redirects to DL_I2CC_enableACK
define DL_I2C_getControllerStatus
#define DL_I2C_getControllerStatus DL_I2CC_getStatus
Redirects to DL_I2CC_getStatus
define DL_I2C_receiveControllerData
#define DL_I2C_receiveControllerData DL_I2CC_receiveData
Redirects to DL_I2CC_receiveData
define DL_I2C_transmitControllerData
#define DL_I2C_transmitControllerData DL_I2CC_transmitData
Redirects to DL_I2CC_transmitData
define DL_I2C_disableMultiControllerMode
#define DL_I2C_disableMultiControllerMode DL_I2CC_disableMultiMode
Redirects to DL_I2CC_disableMultiMode
define DL_I2C_isMultiControllerModeEnabled
#define DL_I2C_isMultiControllerModeEnabled DL_I2CC_isMultiModeEnabled
Redirects to DL_I2CC_isMultiModeEnabled
define DL_I2C_enableMultiControllerMode
#define DL_I2C_enableMultiControllerMode DL_I2CC_enableMultiMode
Redirects to DL_I2CC_enableMultiMode
define DL_I2C_disableController
#define DL_I2C_disableController DL_I2CC_disable
Redirects to DL_I2CC_disable
define DL_I2C_isControllerEnabled
#define DL_I2C_isControllerEnabled DL_I2CC_isEnabled
Redirects to DL_I2CC_isEnabled
define DL_I2C_enableController
#define DL_I2C_enableController DL_I2CC_enable
Redirects to DL_I2CC_enable
define DL_I2C_disableControllerClockStretching
#define DL_I2C_disableControllerClockStretching DL_I2CC_disableClockStretching
Redirects to DL_I2CC_disableClockStretching
define DL_I2C_isControllerClockStretchingEnabled
#define DL_I2C_isControllerClockStretchingEnabled DL_I2CC_isClockStretchingEnabled
Redirects to DL_I2CC_isClockStretchingEnabled
define DL_I2C_enableControllerClockStretching
#define DL_I2C_enableControllerClockStretching DL_I2CC_enableClockStretching
Redirects to DL_I2CC_enableClockStretching
define DL_I2C_getControllerTXFIFOThreshold
#define DL_I2C_getControllerTXFIFOThreshold DL_I2CC_getTXFIFOThreshold
Redirects to DL_I2CC_getTXFIFOThreshold
define DL_I2C_setControllerTXFIFOThreshold
#define DL_I2C_setControllerTXFIFOThreshold DL_I2CC_setTXFIFOThreshold
Redirects to DL_I2CC_setTXFIFOThreshold
define DL_I2C_stopFlushControllerTXFIFO
#define DL_I2C_stopFlushControllerTXFIFO DL_I2CC_stopFlushTXFIFO
Redirects to DL_I2CC_stopFlushTXFIFO
define DL_I2C_startFlushControllerTXFIFO
#define DL_I2C_startFlushControllerTXFIFO DL_I2CC_startFlushTXFIFO
Redirects to DL_I2CC_startFlushTXFIFO
define DL_I2C_getControllerRXFIFOThreshold
#define DL_I2C_getControllerRXFIFOThreshold DL_I2CC_getRXFIFOThreshold
Redirects to DL_I2CC_getRXFIFOThreshold
define DL_I2C_setControllerRXFIFOThreshold
#define DL_I2C_setControllerRXFIFOThreshold DL_I2CC_setRXFIFOThreshold
Redirects to DL_I2CC_setRXFIFOThreshold
define DL_I2C_stopFlushControllerRXFIFO
#define DL_I2C_stopFlushControllerRXFIFO DL_I2CC_stopFlushRXFIFO
Redirects to DL_I2CC_stopFlushRXFIFO
define DL_I2C_startFlushControllerRXFIFO
#define DL_I2C_startFlushControllerRXFIFO DL_I2CC_startFlushRXFIFO
Redirects to DL_I2CC_startFlushRXFIFO
define DL_I2C_getControllerRXFIFOCounter
#define DL_I2C_getControllerRXFIFOCounter DL_I2CC_getRXFIFOCounter
Redirects to DL_I2CC_getRXFIFOCounter
define DL_I2C_getControllerTXFIFOCounter
#define DL_I2C_getControllerTXFIFOCounter DL_I2CC_getTXFIFOCounter
Redirects to DL_I2CC_getTXFIFOCounter
define DL_I2C_isControllerRXFIFOFlushActive
#define DL_I2C_isControllerRXFIFOFlushActive DL_I2CC_isRXFIFOFlushActive
Redirects to DL_I2CC_isRXFIFOFlushActive
define DL_I2C_isControllerTXFIFOFlushActive
#define DL_I2C_isControllerTXFIFOFlushActive DL_I2CC_isTXFIFOFlushActive
Redirects to DL_I2CC_isTXFIFOFlushActive
define DL_I2CC_STATUS_BUSY
#define DL_I2CC_STATUS_BUSY (UNICOMMI2CC_SR_BUSY_MASK)
I2CC is busy.
The BUSY bit is set during an ongoing transaction, so is set during the transmit/receive of the amount of data set in WBLEN including START, RESTART, Address and STOP signal generation when required for the current transaction
define DL_I2CC_STATUS_ERROR
#define DL_I2CC_STATUS_ERROR (UNICOMMI2CC_SR_ERR_MASK)
I2CC error detected.
The error can be from the target address not being acknowledged or the transmit data not being acknowledged
define DL_I2CC_STATUS_ADDR_ACK
#define DL_I2CC_STATUS_ADDR_ACK (UNICOMMI2CC_SR_ADRACK_MASK)
I2CC address acknowledged.
define DL_I2CC_STATUS_DATA_ACK
#define DL_I2CC_STATUS_DATA_ACK (UNICOMMI2CC_SR_DATACK_MASK)
I2CC data acknowledged.
define DL_I2CC_STATUS_ARBITRATION_LOST
#define DL_I2CC_STATUS_ARBITRATION_LOST (UNICOMMI2CC_SR_ARBLST_MASK)
I2CC arbitration lost.
define DL_I2CC_STATUS_IDLE
#define DL_I2CC_STATUS_IDLE (UNICOMMI2CC_SR_IDLE_MASK)
I2CC idle.
define DL_I2CC_STATUS_BUSY_BUS
#define DL_I2CC_STATUS_BUSY_BUS (UNICOMMI2CC_SR_BUSBSY_MASK)
I2CC bus busy.
The bit changes based on the START and STOP conditions
define DL_I2CC_INTERRUPT_RX_DONE
#define DL_I2CC_INTERRUPT_RX_DONE (UNICOMMI2CC_CPU_INT_IMASK_RXDONE_SET)
Receive Transaction completed Interrupt.
define DL_I2CC_INTERRUPT_TX_DONE
#define DL_I2CC_INTERRUPT_TX_DONE (UNICOMMI2CC_CPU_INT_IMASK_TXDONE_SET)
Transmit Transaction completed Interrupt.
define DL_I2CC_INTERRUPT_RXFIFO_TRIGGER
#define DL_I2CC_INTERRUPT_RXFIFO_TRIGGER (UNICOMMI2CC_CPU_INT_IMASK_RXTRG_SET)
Receive FIFO Trigger when >= defined bytes.
define DL_I2CC_INTERRUPT_TXFIFO_TRIGGER
#define DL_I2CC_INTERRUPT_TXFIFO_TRIGGER (UNICOMMI2CC_CPU_INT_IMASK_TXTRG_SET)
Transmit FIFO Trigger when <= defined bytes.
define DL_I2CC_INTERRUPT_RXFIFO_FULL
#define DL_I2CC_INTERRUPT_RXFIFO_FULL (UNICOMMI2CC_CPU_INT_IMASK_RXFIFOFULL_SET)
Receive FIFO is full.
define DL_I2CC_INTERRUPT_TXFIFO_EMPTY
#define DL_I2CC_INTERRUPT_TXFIFO_EMPTY (UNICOMMI2CC_CPU_INT_IMASK_TXEMPTY_SET)
Transmit FIFO is empty.
define DL_I2CC_INTERRUPT_NACK
#define DL_I2CC_INTERRUPT_NACK (UNICOMMI2CC_CPU_INT_IMASK_NACK_SET)
Address/Data NACK Interrupt.
define DL_I2CC_INTERRUPT_START
#define DL_I2CC_INTERRUPT_START (UNICOMMI2CC_CPU_INT_IMASK_START_SET)
START Detection Interrupt.
define DL_I2CC_INTERRUPT_STOP
#define DL_I2CC_INTERRUPT_STOP (UNICOMMI2CC_CPU_INT_IMASK_STOP_SET)
STOP Detection Interrupt.
define DL_I2CC_INTERRUPT_ARBITRATION_LOST
#define DL_I2CC_INTERRUPT_ARBITRATION_LOST (UNICOMMI2CC_CPU_INT_IMASK_ARBLOST_SET)
Arbitration Lost Interrupt.
define DL_I2CC_INTERRUPT_EVENT1_DMA_DONE
#define DL_I2CC_INTERRUPT_EVENT1_DMA_DONE (UNICOMMI2CC_CPU_INT_IMASK_DMA_DONE_TX_SET)
DMA Done on Event 1 publisher.
define DL_I2CC_INTERRUPT_EVENT2_DMA_DONE
#define DL_I2CC_INTERRUPT_EVENT2_DMA_DONE (UNICOMMI2CC_CPU_INT_IMASK_DMA_DONE_RX_SET)
DMA Done on Event 2 publisher.
define DL_I2CC_INTERRUPT_PEC_RX_ERROR
#define DL_I2CC_INTERRUPT_PEC_RX_ERROR (UNICOMMI2CC_CPU_INT_IMASK_PEC_RX_ERR_SET)
SMBus/PMBus PEC Receive Error Interrupt.
define DL_I2CC_INTERRUPT_TIMEOUT_A
#define DL_I2CC_INTERRUPT_TIMEOUT_A (UNICOMMI2CC_CPU_INT_IMASK_TIMEOUTA_SET)
Timeout A Interrupt.
define DL_I2CC_INTERRUPT_TIMEOUT_B
#define DL_I2CC_INTERRUPT_TIMEOUT_B (UNICOMMI2CC_CPU_INT_IMASK_TIMEOUTB_SET)
Timeout B Interrupt.
define DL_I2CC_DMA_INTERRUPT_TXFIFO_TRIGGER
#define DL_I2CC_DMA_INTERRUPT_TXFIFO_TRIGGER (UNICOMMI2CC_DMA_TRIG0_IMASK_TXTRG_SET)
Transmit FIFO Trigger when <= defined bytes for DMA trigger.
define DL_I2CC_DMA_INTERRUPT_RXFIFO_TRIGGER
#define DL_I2CC_DMA_INTERRUPT_RXFIFO_TRIGGER (UNICOMMI2CC_DMA_TRIG1_IMASK_RXTRG_SET)
Receive FIFO Trigger when >= defined bytes for DMA trigger.