Arrow3-MBN-APP
 
Loading...
Searching...
No Matches
indication.c File Reference

Source that initializes and self-test the indication i2c-1. More...

#include <stdio.h>
#include <AppGlobal.h>
#include "main.h"
Include dependency graph for indication.c:

Macros

#define I2C_DEVICE   "/dev/i2c-1"
 
#define I2C_1_ADDR1   0x22
 
#define I2C_1_ADDR2   0x26
 

Functions

int indication_self_test (void)
 Test to check the I2C read and write functionality.
 

Variables

struct i2c_msg i2cmsg
 
struct i2c_rdwr_ioctl_data msg_rdwr
 
int i2c_va_led_file
 

Detailed Description

Source that initializes and self-test the indication i2c-1.

Macro Definition Documentation

◆ I2C_1_ADDR1

#define I2C_1_ADDR1   0x22

◆ I2C_1_ADDR2

#define I2C_1_ADDR2   0x26

◆ I2C_DEVICE

#define I2C_DEVICE   "/dev/i2c-1"

Function Documentation

◆ indication_self_test()

int indication_self_test ( void )

Test to check the I2C read and write functionality.

Returns
API_SUCCESS_test on success, API_FAILURE_test on failure
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ i2c_va_led_file

int i2c_va_led_file

◆ i2cmsg

struct i2c_msg i2cmsg

◆ msg_rdwr

struct i2c_rdwr_ioctl_data msg_rdwr