FireBirdLib - Topfield TMS PVR TAP Programming Library
HDD_Smart_ReadThresholdData.c
Go to the documentation of this file.
1
#include "
FBLib_hdd.h
"
2
#include "
libFireBird.h
"
3
4
int
HDD_Smart_ReadThresholdData
(word *DataBuf)
5
{
6
TRACEENTER
();
7
8
unsigned
char
CommandBlock[
FBHDIO_DRIVE_CMD_HDR_SIZE
+ 512] = {
WIN_SMART
, 0,
SMART_READ_THRESHOLDS
, 1,};
9
10
if
(
SendHDDCommand
(
HDIO_DRIVE_CMD
, CommandBlock, 512))
11
{
12
TRACEEXIT
();
13
return
19;
14
}
15
memcpy(DataBuf, &CommandBlock[4], 512);
16
17
TRACEEXIT
();
18
return
0;
19
}
FBLib_hdd.h
SMART_READ_THRESHOLDS
#define SMART_READ_THRESHOLDS
Definition:
FBLib_hdd.h:41
FBHDIO_DRIVE_CMD_HDR_SIZE
#define FBHDIO_DRIVE_CMD_HDR_SIZE
Definition:
FBLib_hdd.h:37
SendHDDCommand
int SendHDDCommand(dword, const byte *, int)
Definition:
SendHDDCommand.c:4
WIN_SMART
#define WIN_SMART
Definition:
FBLib_hdd.h:39
HDIO_DRIVE_CMD
#define HDIO_DRIVE_CMD
Definition:
FBLib_hdd.h:52
HDD_Smart_ReadThresholdData
int HDD_Smart_ReadThresholdData(word *DataBuf)
Definition:
HDD_Smart_ReadThresholdData.c:4
libFireBird.h
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
hdd
HDD_Smart_ReadThresholdData.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3