mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-01 19:07:51 +00:00
26 lines
634 B
C
26 lines
634 B
C
/**
|
|
* Copyright (c) 2017-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
#ifndef OC_I2C_H_
|
|
#define OC_I2C_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef struct __attribute__((packed, aligned(1))) {
|
|
uint8_t slaveAddress;
|
|
uint8_t number_of_bytes;
|
|
uint8_t reg_address;
|
|
uint16_t reg_value;
|
|
} S_OCI2C;
|
|
|
|
typedef struct S_I2C_Cfg {
|
|
unsigned int bus;
|
|
} S_I2C_Cfg;
|
|
|
|
#endif /* INC_DEVICES_OC_I2C_H_ */
|