Switch to fixed-width integer types for iCX3 structs.
This commit is contained in:
parent
7b80a78763
commit
6041c13bb9
29
icx3.h
29
icx3.h
@ -1,6 +1,7 @@
|
|||||||
#ifndef ICX3_H
|
#ifndef ICX3_H
|
||||||
#define ICX3_H
|
#define ICX3_H
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
#include "evga-card.h"
|
#include "evga-card.h"
|
||||||
|
|
||||||
#define ICX3_I2C_ADDR 0x2D
|
#define ICX3_I2C_ADDR 0x2D
|
||||||
@ -22,26 +23,26 @@
|
|||||||
#define ICX3_WRITE_DISABLED 0xFE
|
#define ICX3_WRITE_DISABLED 0xFE
|
||||||
|
|
||||||
struct icx3_fan_control {
|
struct icx3_fan_control {
|
||||||
unsigned char length;
|
uint8_t length;
|
||||||
unsigned char fanmode;
|
uint8_t fanmode;
|
||||||
unsigned short rpm_offset;
|
uint16_t rpm_offset;
|
||||||
unsigned char duty;
|
uint8_t duty;
|
||||||
unsigned char duty_status;
|
uint8_t duty_status;
|
||||||
unsigned short rpm_status;
|
uint16_t rpm_status;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct icx3_temp_sensors {
|
struct icx3_temp_sensors {
|
||||||
unsigned char length;
|
uint8_t length;
|
||||||
unsigned char data[18];
|
uint8_t data[18];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct icx3_info {
|
struct icx3_info {
|
||||||
unsigned char length;
|
uint8_t length;
|
||||||
unsigned char reserved;
|
uint8_t reserved;
|
||||||
unsigned char slave_address;
|
uint8_t slave_address;
|
||||||
unsigned char product_id;
|
uint8_t product_id;
|
||||||
unsigned char major_version;
|
uint8_t major_version;
|
||||||
unsigned char minor_version;
|
uint8_t minor_version;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum icx3_product_id {
|
enum icx3_product_id {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user