mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-02 11:28:04 +00:00
> Changes done : > 1. Shared schema between host and embedded controller. 2. Commands messages are handled at driver level. 3. Debug message type added to enable debugging on i2c, spi and gpio's. 4. Auto test capabilities added to ethernet module. 5. Unit test cases written for multiple devices like LTC4275, LTC4274, LTC4015,ADT7481, PCA9557, SX1509.
44 lines
1.3 KiB
C
44 lines
1.3 KiB
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 POST_FRAME_H_
|
|
#define POST_FRAME_H_
|
|
|
|
/*****************************************************************************
|
|
* HEADER FILES
|
|
*****************************************************************************/
|
|
#include <stdint.h>
|
|
|
|
/*****************************************************************************
|
|
* STRUCT/ENUM DEFINITIONS
|
|
*****************************************************************************/
|
|
typedef enum {
|
|
POST_DEV_NOSTATUS = 0,
|
|
POST_DEV_MISSING,
|
|
POST_DEV_ID_MISMATCH,
|
|
POST_DEV_FOUND,
|
|
POST_DEV_CFG_DONE,
|
|
POST_DEV_NO_CFG_REQ,
|
|
POST_DEV_CFG_FAIL,
|
|
POST_DEV_FAULTY,
|
|
POST_DEV_CRITICAL_FAULT,
|
|
POST_DEV_NO_DRIVER_EXIST,
|
|
} ePostCode;
|
|
|
|
typedef struct __attribute__((packed, aligned(1))) {
|
|
uint8_t subsystem;
|
|
uint8_t devSno;
|
|
uint8_t i2cBus;
|
|
uint8_t devAddr;
|
|
uint16_t devId;
|
|
uint16_t manId;
|
|
uint8_t status;
|
|
} POSTData;
|
|
|
|
#endif /* POST_FRAME_H_ */
|