rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
panel_i2c.c File Reference

The table of I2C addresses taken on the panel board's buses (panel_i2c.h). More...

#include "panel_i2c.h"
#include <stddef.h>

Functions

const char * panel_i2c_owner (unsigned addr)
 The owner of addr: "GT911" or "I2C reserved", "not a 7-bit address" above 0x7F, NULL for a free address.
bool panel_i2c_addr_reserved (unsigned addr)
 Whether addr belongs to the board, or is no 7-bit address at all.

Variables

const panel_i2c_range_t panel_i2c_reserved_table []
 The ranges, in rising address order.
const unsigned panel_i2c_reserved_count

Detailed Description

The table of I2C addresses taken on the panel board's buses (panel_i2c.h).

SPDX-License-Identifier: MIT

Function Documentation

◆ panel_i2c_addr_reserved()

bool panel_i2c_addr_reserved ( unsigned addr)

Whether addr belongs to the board, or is no 7-bit address at all.

Parameters
addrThe 7-bit address.
Returns
true when the board answers at addr, or addr is no 7-bit address.

◆ panel_i2c_owner()

const char * panel_i2c_owner ( unsigned addr)

The owner of addr: "GT911" or "I2C reserved", "not a 7-bit address" above 0x7F, NULL for a free address.

Parameters
addrThe address to name.
Returns
The owner's name, or NULL for a free address.

Variable Documentation

◆ panel_i2c_reserved_count

const unsigned panel_i2c_reserved_count
Initial value:
=
const panel_i2c_range_t panel_i2c_reserved_table[]
The ranges, in rising address order.
Definition panel_i2c.c:13

◆ panel_i2c_reserved_table

const panel_i2c_range_t panel_i2c_reserved_table[]
Initial value:
= {
{ 0x00, 0x03, "I2C reserved" },
{ 0x14, 0x14, "GT911" },
{ 0x5D, 0x5D, "GT911" },
{ 0x78, 0x7F, "I2C reserved" },
}

The ranges, in rising address order.