FireBirdLib - Topfield TMS PVR TAP Programming Library
HDD_APM_Enable.c
Go to the documentation of this file.
1
#include "
FBLib_hdd.h
"
2
#include "
libFireBird.h
"
3
4
int
HDD_APM_Enable
(
byte
APMLevel)
5
{
6
TRACEENTER
();
7
8
int
ret;
9
unsigned
char
CommandBlock[
FBHDIO_DRIVE_TASK_HDR_SIZE
] = {
WIN_SETFEATURES
,
//COMMAND
10
SETFEATURES_EN_APM
,
//FEATURE
11
APMLevel,
//NSECTOR
12
0,
//SECTOR
13
0,
//LCYL
14
0,
//HCYL
15
0,
//SELECT
16
0};
//COMMAND
17
18
ret =
SendHDDCommand
(
HDIO_DRIVE_TASK
, CommandBlock, 0);
19
20
TRACEEXIT
();
21
return
ret;
22
}
FBLib_hdd.h
SendHDDCommand
int SendHDDCommand(dword, const byte *, int)
Definition:
SendHDDCommand.c:4
SETFEATURES_EN_APM
#define SETFEATURES_EN_APM
Definition:
FBLib_hdd.h:47
HDIO_DRIVE_TASK
#define HDIO_DRIVE_TASK
Definition:
FBLib_hdd.h:51
WIN_SETFEATURES
#define WIN_SETFEATURES
Definition:
FBLib_hdd.h:44
FBHDIO_DRIVE_TASK_HDR_SIZE
#define FBHDIO_DRIVE_TASK_HDR_SIZE
Definition:
FBLib_hdd.h:38
HDD_APM_Enable
int HDD_APM_Enable(byte APMLevel)
Definition:
HDD_APM_Enable.c:4
libFireBird.h
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
hdd
HDD_APM_Enable.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3