Api Code File Description; I2Cmastermacro.c - Fujitsu F2MC-8FX Series Application Note

Hide thumbs Also See for F2MC-8FX Series:
Table of Contents

Advertisement

4.3 API Code File Description

API files are used to transfer drive file. They are shown as below,

4.3.1 I2CMasterMacro.c

In this function,
Following table describes I2C master library.
Function Name
unsigned char Judge_P00(void)
void LEDCoordin(unsigned char LedStatus)
void EEPROM_I2C(void)
void EndDevice_I2C(void)
void I2C_MasterMacro(void)
Following table describes how to use function Judge_P00.
Function name
Function prototype
Behavior description
Input parameter
Return value
Example
Following table describes how to use function LEDCoordin.
Function name
Function prototype
Behavior description
Input parameter
Return value
Example
MB2146-460-E Setup Guide V1.2
Chapter 4 Sample Code Manual
Figure 4-3: API Code Files
Judge p00 status
Make LED2 on or off
Write data to EEPROM
Write data to external slave device
When use I2C master mode use it
unsigned char Judge_P00(void)
Judge the jumper connected to EEPROM or external device
None
The jumper connect status:
0 --- I2C master connect to external slave device
1 --- I2C master connect to EEPROM
[variable] = Judge_P00 ();
void LEDCoordin(unsigned char LedStatus)
When the board coordinate successfully, the LED2 will on
LedStatus: 0 --- off LED2
1 --- light on LED2
None
Make LED2 on:
LEDCoordin(1);
MCU-AN-500083-E-12 – Page 35
Description
Judge_P00
LEDCoordin

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95350l seriesMb2146-460-e

Table of Contents