File: cgo.go

package info (click to toggle)
golang-github-d2r2-go-i2c 0.0~git20191123.73a8a79-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 116 kB
  • sloc: makefile: 2
file content (12 lines) | stat: -rw-r--r-- 182 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
// +build linux,cgo

package i2c

// #include <linux/i2c-dev.h>
import "C"

// Get I2C_SLAVE constant value from
// Linux OS I2C declaration file.
const (
	I2C_SLAVE = C.I2C_SLAVE
)