Addressjudge .C - Fujitsu F2MC-8FX Series Application Note

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

Advertisement

4.2.2 Addressjudge .c

Following table describes the Addressjudge library:
Function Name
unsigned char Judge_SlaveAddr(unsigned char
AddrJudg)
When IIC0 is connected to multiple slave devices, these five constants are used decide
which one to access.
Following table describes the function Addressjudge.
Function name
Function prototype
Behavior description
Input parameter
Return value
Example
MB2146-460-E Setup Guide V1.2
Chapter 4 Sample Code Manual
Divide ADC value into five constants
unsigned char Judge_SlaveAddr(unsigned char AddrJudg)
Divide the ADC value to 5 areas: 0x10,0x20,0x30,0x40,0x50
ADC value
Area number
Judge ADC value 0x36 is belong to which area:
[variable] = Judge_SlaveAddr(0x36);
MCU-AN-500083-E-12 – Page 28
Description
Judge_SlaveAddr

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95350l seriesMb2146-460-e

Table of Contents