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

source file to check the IO_Expander More...

#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <linux/gpio.h>
#include <fcntl.h>
#include <linux/spi/spidev.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <pthread.h>
#include <sys/eventfd.h>
#include <sys/epoll.h>
#include <stdint.h>
#include <time.h>
#include <getopt.h>
#include <sys/time.h>
#include <linux/types.h>
#include <linux/i2c-dev.h>
#include "main.h"
Include dependency graph for io_expander_test.c:

Macros

#define I2C_DEVICE   "/dev/i2c-1"
 
#define I2C_ADDR1   0x22
 
#define I2C_ADDR2   0x26
 

Functions

int led (void)
 Test to check the leds.
 

Detailed Description

source file to check the IO_Expander

Macro Definition Documentation

◆ I2C_ADDR1

#define I2C_ADDR1   0x22

◆ I2C_ADDR2

#define I2C_ADDR2   0x26

◆ I2C_DEVICE

#define I2C_DEVICE   "/dev/i2c-1"

Function Documentation

◆ led()

int led ( void )

Test to check the leds.

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