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
|
||||
#define ICX3_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include "evga-card.h"
|
||||
|
||||
#define ICX3_I2C_ADDR 0x2D
|
||||
@ -22,26 +23,26 @@
|
||||
#define ICX3_WRITE_DISABLED 0xFE
|
||||
|
||||
struct icx3_fan_control {
|
||||
unsigned char length;
|
||||
unsigned char fanmode;
|
||||
unsigned short rpm_offset;
|
||||
unsigned char duty;
|
||||
unsigned char duty_status;
|
||||
unsigned short rpm_status;
|
||||
uint8_t length;
|
||||
uint8_t fanmode;
|
||||
uint16_t rpm_offset;
|
||||
uint8_t duty;
|
||||
uint8_t duty_status;
|
||||
uint16_t rpm_status;
|
||||
};
|
||||
|
||||
struct icx3_temp_sensors {
|
||||
unsigned char length;
|
||||
unsigned char data[18];
|
||||
uint8_t length;
|
||||
uint8_t data[18];
|
||||
};
|
||||
|
||||
struct icx3_info {
|
||||
unsigned char length;
|
||||
unsigned char reserved;
|
||||
unsigned char slave_address;
|
||||
unsigned char product_id;
|
||||
unsigned char major_version;
|
||||
unsigned char minor_version;
|
||||
uint8_t length;
|
||||
uint8_t reserved;
|
||||
uint8_t slave_address;
|
||||
uint8_t product_id;
|
||||
uint8_t major_version;
|
||||
uint8_t minor_version;
|
||||
};
|
||||
|
||||
enum icx3_product_id {
|
||||
|
Loading…
x
Reference in New Issue
Block a user