Bar Logo 3.8/7.6 kw Totem pole Demonstration Application (Part-No. (not specified))
 
Content
     
Loading...
Searching...
No Matches
drv_i2c.h File Reference

This is the driver header file for DMA driver. More...

#include <xc.h>
#include "i2c2.h"
+ Include dependency graph for drv_i2c.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  I2C_STATUS_s
 
struct  SIC_FLAGS_s
 
struct  AUX_FLAGS_s
 
struct  SIC_CLIENT_RECEIVE_FRAME_s
 
struct  I2C_s
 

Macros

#define I2C_WRITE_BUFFER_SIZE   (9)
 
#define CMD_SEND_COMBINED_STATUS_DATA   (0x43)
 
#define I2C_TIMEOUT   (60.0e-3)
 
#define I2C_TIMEOUT_IN_100us_TICKS   ((uint16_t)(I2C_TIMEOUT/100.0e-6))
 

Typedefs

typedef struct I2C_STATUS_s I2C_STATUS_t
 Status word object.
 
typedef struct SIC_FLAGS_s SIC_FLAGS_t
 
typedef struct AUX_FLAGS_s AUX_FLAGS_t
 
typedef struct SIC_CLIENT_RECEIVE_FRAME_s SIC_CLIENT_RECEIVE_FRAME_t
 
typedef struct I2C_s I2C_t
 

Functions

bool I2C2_StatusCallback (I2C2_SLAVE_DRIVER_STATUS status)
 
I2C_t Drv_I2C_Get_Write_Data (void)
 
void Drv_I2C_Timeout (void)
 

Detailed Description

I2C Driver HEader File

Definition in file drv_i2c.h.

Macro Definition Documentation

◆ CMD_SEND_COMBINED_STATUS_DATA

#define CMD_SEND_COMBINED_STATUS_DATA   (0x43)

Definition at line 48 of file drv_i2c.h.

◆ I2C_TIMEOUT

#define I2C_TIMEOUT   (60.0e-3)

Definition at line 51 of file drv_i2c.h.

◆ I2C_TIMEOUT_IN_100us_TICKS

#define I2C_TIMEOUT_IN_100us_TICKS   ((uint16_t)(I2C_TIMEOUT/100.0e-6))

Definition at line 54 of file drv_i2c.h.

◆ I2C_WRITE_BUFFER_SIZE

#define I2C_WRITE_BUFFER_SIZE   (9)

Definition at line 45 of file drv_i2c.h.

Typedef Documentation

◆ AUX_FLAGS_t

typedef struct AUX_FLAGS_s AUX_FLAGS_t

Definition at line 108 of file drv_i2c.h.

◆ I2C_STATUS_t

typedef struct I2C_STATUS_s I2C_STATUS_t

Definition at line 78 of file drv_i2c.h.

◆ I2C_t

typedef struct I2C_s I2C_t

Definition at line 138 of file drv_i2c.h.

◆ SIC_CLIENT_RECEIVE_FRAME_t

Definition at line 129 of file drv_i2c.h.

◆ SIC_FLAGS_t

typedef struct SIC_FLAGS_s SIC_FLAGS_t

Definition at line 93 of file drv_i2c.h.

Function Documentation

◆ Drv_I2C_Get_Write_Data()

I2C_t Drv_I2C_Get_Write_Data ( void )

Definition at line 68 of file drv_i2c.c.

+ Here is the caller graph for this function:

◆ Drv_I2C_Timeout()

void Drv_I2C_Timeout ( void )

Definition at line 235 of file drv_i2c.c.

◆ I2C2_StatusCallback()

bool I2C2_StatusCallback ( I2C2_SLAVE_DRIVER_STATUS status)

Definition at line 82 of file drv_i2c.c.