smartmontools SVN Rev 5645
Utility to control and monitor storage systems with "S.M.A.R.T."
Functions | Variables
atacmdnames.cpp File Reference
#include "atacmdnames.h"
#include "static_assert.h"
#include <stdlib.h>
#include <stdio.h>
Include dependency graph for atacmdnames.cpp:

Go to the source code of this file.

Functions

 STATIC_ASSERT (sizeof(command_table)==256 *sizeof(command_table[0]))
 
const char * look_up_ata_command (unsigned char c_code, unsigned char f_reg)
 

Variables

const char * atacmdnames_cpp_cvsid
 
const char cmd_reserved [] = "[RESERVED]"
 
const char cmd_vendor_specific [] = "[VENDOR SPECIFIC]"
 
const char cmd_reserved_sa [] = "[RESERVED FOR SERIAL ATA]"
 
const char cmd_reserved_cf [] = "[RESERVED FOR COMPACTFLASH ASSOCIATION]"
 
const char cmd_reserved_mcpt [] = "[RESERVED FOR MEDIA CARD PASS THROUGH]"
 
const char cmd_recalibrate_ret4 [] = "RECALIBRATE [RET-4]"
 
const char cmd_seek_ret4 [] = "SEEK [RET-4]"
 
const char *const command_table []
 

Function Documentation

◆ look_up_ata_command()

const char * look_up_ata_command ( unsigned char  c_code,
unsigned char  f_reg 
)

Definition at line 313 of file atacmdnames.cpp.

◆ STATIC_ASSERT()

STATIC_ASSERT ( sizeof(command_table = =256 *sizeof(command_table[0]))

Variable Documentation

◆ atacmdnames_cpp_cvsid

const char* atacmdnames_cpp_cvsid
Initial value:
= "$Id: atacmdnames.cpp 4934 2019-07-01 20:54:14Z chrfranke $"
#define ATACMDNAMES_H_CVSID
Definition: atacmdnames.h:17

Definition at line 18 of file atacmdnames.cpp.

◆ cmd_recalibrate_ret4

const char cmd_recalibrate_ret4[] = "RECALIBRATE [RET-4]"

Definition at line 26 of file atacmdnames.cpp.

◆ cmd_reserved

const char cmd_reserved[] = "[RESERVED]"

Definition at line 21 of file atacmdnames.cpp.

◆ cmd_reserved_cf

const char cmd_reserved_cf[] = "[RESERVED FOR COMPACTFLASH ASSOCIATION]"

Definition at line 24 of file atacmdnames.cpp.

◆ cmd_reserved_mcpt

const char cmd_reserved_mcpt[] = "[RESERVED FOR MEDIA CARD PASS THROUGH]"

Definition at line 25 of file atacmdnames.cpp.

◆ cmd_reserved_sa

const char cmd_reserved_sa[] = "[RESERVED FOR SERIAL ATA]"

Definition at line 23 of file atacmdnames.cpp.

◆ cmd_seek_ret4

const char cmd_seek_ret4[] = "SEEK [RET-4]"

Definition at line 27 of file atacmdnames.cpp.

◆ cmd_vendor_specific

const char cmd_vendor_specific[] = "[VENDOR SPECIFIC]"

Definition at line 22 of file atacmdnames.cpp.

◆ command_table

const char* const command_table[]

Definition at line 31 of file atacmdnames.cpp.