mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 07:31:35 +08:00
astyle src/drivers/device
This commit is contained in:
committed by
Lorenz Meier
parent
adbe38e86b
commit
8fbf5cbdaf
@@ -162,12 +162,12 @@ public:
|
|||||||
*/
|
*/
|
||||||
struct DeviceStructure {
|
struct DeviceStructure {
|
||||||
enum DeviceBusType bus_type : 3;
|
enum DeviceBusType bus_type : 3;
|
||||||
uint8_t bus: 5; // which instance of the bus type
|
uint8_t bus: 5; // which instance of the bus type
|
||||||
uint8_t address; // address on the bus (eg. I2C address)
|
uint8_t address; // address on the bus (eg. I2C address)
|
||||||
uint8_t devtype; // device class specific device type
|
uint8_t devtype; // device class specific device type
|
||||||
};
|
};
|
||||||
|
|
||||||
union DeviceId {
|
union DeviceId {
|
||||||
struct DeviceStructure devid_s;
|
struct DeviceStructure devid_s;
|
||||||
uint32_t devid;
|
uint32_t devid;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -149,12 +149,12 @@ public:
|
|||||||
*/
|
*/
|
||||||
struct DeviceStructure {
|
struct DeviceStructure {
|
||||||
enum DeviceBusType bus_type : 3;
|
enum DeviceBusType bus_type : 3;
|
||||||
uint8_t bus: 5; // which instance of the bus type
|
uint8_t bus: 5; // which instance of the bus type
|
||||||
uint8_t address; // address on the bus (eg. I2C address)
|
uint8_t address; // address on the bus (eg. I2C address)
|
||||||
uint8_t devtype; // device class specific device type
|
uint8_t devtype; // device class specific device type
|
||||||
};
|
};
|
||||||
|
|
||||||
union DeviceId {
|
union DeviceId {
|
||||||
struct DeviceStructure devid_s;
|
struct DeviceStructure devid_s;
|
||||||
uint32_t devid;
|
uint32_t devid;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user