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