libsmbios_c library
Data Structures | Enumerations | Functions | Variables
smi Namespace Reference

Data Structures

class  IDellCallingInterfaceSmi
 
class  SmiFactory
 

Enumerations

enum  { cbARG1 = 0, cbARG2 = 1, cbARG3 = 2, cbARG4 = 3 }
 
enum  { cbRES1 = 0, cbRES2 = 1, cbRES3 = 2, cbRES4 = 3 }
 
enum  password_format_enum { PW_FORMAT_UNKNOWN, PW_FORMAT_SCAN_CODE, PW_FORMAT_ASCII }
 
enum  radioNum { WLAN_RADIO_NUM =1, BLUETOOTH_RADIO_NUM =2, WWAN_RADIO_NUM =3 }
 
enum  { WLAN_SWITCH_CTL =1, BLUETOOTH_SWITCH_CTL =2, WWAN_SWITCH_CTL =4, LOCATOR_SWITCH_CTL =5 }
 
enum  radioStatusCode {
  STATUS_ENABLED, STATUS_DISABLED, STATUS_NOT_PRESENT, STATUS_UNSUPPORTED,
  STATUS_UNKNOWN
}
 

Functions

 DECLARE_EXCEPTION (SmiException)
 Abstract base class for the smi read write operations. More...
 
 DECLARE_EXCEPTION_EX (InvalidSmiMode, smi, SmiException)
 
 DECLARE_EXCEPTION_EX (ParameterError, smi, SmiException)
 
 DECLARE_EXCEPTION_EX (UnhandledSmi, smi, SmiException)
 
 DECLARE_EXCEPTION_EX (UnsupportedSmi, smi, SmiException)
 
 DECLARE_EXCEPTION_EX (SmiExecutedWithError, smi, SmiException)
 
 DECLARE_EXCEPTION_EX (PasswordVerificationFailed, smi, SmiException)
 
 DECLARE_EXCEPTION_EX (ConfigError, smi, SmiException)
 
void doSimpleCallingInterfaceSmi (u16 smiClass, u16 select, const u32 args[4], u32 res[4])
 
std::auto_ptr< smi::IDellCallingInterfaceSmisetupCallingInterfaceSmi (u16 smiClass, u16 select, const u32 args[4])
 
u32 getAuthenticationKey (const std::string &password)
 
password_format_enum getPasswordFormat ()
 
bool getPasswordStatus (u16 which)
 
u32 readNVStorage (u32 location, u32 *minValue, u32 *maxValue)
 
u32 readBatteryModeSetting (u32 location, u32 *minValue, u32 *maxValue)
 
u32 readACModeSetting (u32 location, u32 *minValue, u32 *maxValue)
 
u32 readSystemStatus (u32 *failingSensorHandle)
 
u32 writeNVStorage (const std::string &password, u32 location, u32 value, u32 *minValue, u32 *maxValue)
 
u32 writeBatteryModeSetting (const std::string &password, u32 location, u32 value, u32 *minValue, u32 *maxValue)
 
u32 writeACModeSetting (const std::string &password, u32 location, u32 value, u32 *minValue, u32 *maxValue)
 
void getDisplayType (u32 &type, u32 &resolution, u32 &memSizeX256kb)
 
void getPanelResolution (u32 &horiz, u32 &vert)
 
void getActiveDisplays (u32 &bits)
 
void setActiveDisplays (u32 &bits)
 
void getPropertyOwnershipTag (char *tagBuf, size_t size)
 
void setPropertyOwnershipTag (const std::string password, const char *newTag, size_t size)
 
void wirelessRadioControl (bool enable, bool boot, bool runtime, int enable_token, int disable_token, int radioNum, std::string password)
 
void wirelessSwitchControl (bool enable, bool boot, bool runtime, int enable_token, int disable_token, int switchNum, std::string password)
 
radioStatusCode wirelessRadioStatus (radioNum which, std::ostream &cout=std::cout, u32 defRes2=0)
 

Variables

const int Bluetooth_Devices_Disable
 
const int Bluetooth_Devices_Enable
 
const int Cellular_Radio_Disable
 
const int Cellular_Radio_Enable
 
const int WiFi_Locator_Disable
 
const int WiFi_Locator_Enable
 
const int Wireless_LAN_Disable
 
const int Wireless_LAN_Enable
 
const int Wireless_Switch_Bluetooth_Control_Disable
 
const int Wireless_Switch_Bluetooth_Control_Enable
 
const int Wireless_Switch_Cellular_Control_Disable
 
const int Wireless_Switch_Cellular_Control_Enable
 
const int Wireless_Switch_Wireless_LAN_Control_Disable
 
const int Wireless_Switch_Wireless_LAN_Control_Enable
 
const int Radio_Transmission_Enable
 
const int Radio_Transmission_Disable
 
const int Wireless_Device_Disable
 
const int Wireless_Device_App_Control
 
const int Wireless_Device_App_Or_Hotkey_Control
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
cbARG1 
cbARG2 
cbARG3 
cbARG4 

◆ anonymous enum

anonymous enum
Enumerator
cbRES1 
cbRES2 
cbRES3 
cbRES4 

◆ anonymous enum

anonymous enum
Enumerator
WLAN_SWITCH_CTL 
BLUETOOTH_SWITCH_CTL 
WWAN_SWITCH_CTL 
LOCATOR_SWITCH_CTL 

◆ password_format_enum

Enumerator
PW_FORMAT_UNKNOWN 
PW_FORMAT_SCAN_CODE 
PW_FORMAT_ASCII 

◆ radioNum

Enumerator
WLAN_RADIO_NUM 
BLUETOOTH_RADIO_NUM 
WWAN_RADIO_NUM 

◆ radioStatusCode

Enumerator
STATUS_ENABLED 
STATUS_DISABLED 
STATUS_NOT_PRESENT 
STATUS_UNSUPPORTED 
STATUS_UNKNOWN 

Function Documentation

◆ DECLARE_EXCEPTION()

smi::DECLARE_EXCEPTION ( SmiException  )

Abstract base class for the smi read write operations.

◆ DECLARE_EXCEPTION_EX() [1/7]

smi::DECLARE_EXCEPTION_EX ( InvalidSmiMode  ,
smi  ,
SmiException   
)

◆ DECLARE_EXCEPTION_EX() [2/7]

smi::DECLARE_EXCEPTION_EX ( ParameterError  ,
smi  ,
SmiException   
)

◆ DECLARE_EXCEPTION_EX() [3/7]

smi::DECLARE_EXCEPTION_EX ( UnhandledSmi  ,
smi  ,
SmiException   
)

◆ DECLARE_EXCEPTION_EX() [4/7]

smi::DECLARE_EXCEPTION_EX ( UnsupportedSmi  ,
smi  ,
SmiException   
)

◆ DECLARE_EXCEPTION_EX() [5/7]

smi::DECLARE_EXCEPTION_EX ( SmiExecutedWithError  ,
smi  ,
SmiException   
)

◆ DECLARE_EXCEPTION_EX() [6/7]

smi::DECLARE_EXCEPTION_EX ( PasswordVerificationFailed  ,
smi  ,
SmiException   
)

◆ DECLARE_EXCEPTION_EX() [7/7]

smi::DECLARE_EXCEPTION_EX ( ConfigError  ,
smi  ,
SmiException   
)

◆ doSimpleCallingInterfaceSmi()

void smi::doSimpleCallingInterfaceSmi ( u16  smiClass,
u16  select,
const u32  args[4],
u32  res[4] 
)

◆ getActiveDisplays()

void smi::getActiveDisplays ( u32 bits)

◆ getAuthenticationKey()

u32 smi::getAuthenticationKey ( const std::string &  password)

◆ getDisplayType()

void smi::getDisplayType ( u32 type,
u32 resolution,
u32 memSizeX256kb 
)

◆ getPanelResolution()

void smi::getPanelResolution ( u32 horiz,
u32 vert 
)

◆ getPasswordFormat()

password_format_enum smi::getPasswordFormat ( )

◆ getPasswordStatus()

bool smi::getPasswordStatus ( u16  which)

◆ getPropertyOwnershipTag()

void smi::getPropertyOwnershipTag ( char *  tagBuf,
size_t  size 
)

◆ readACModeSetting()

u32 smi::readACModeSetting ( u32  location,
u32 minValue,
u32 maxValue 
)

◆ readBatteryModeSetting()

u32 smi::readBatteryModeSetting ( u32  location,
u32 minValue,
u32 maxValue 
)

◆ readNVStorage()

u32 smi::readNVStorage ( u32  location,
u32 minValue,
u32 maxValue 
)

◆ readSystemStatus()

u32 smi::readSystemStatus ( u32 failingSensorHandle)

◆ setActiveDisplays()

void smi::setActiveDisplays ( u32 bits)

◆ setPropertyOwnershipTag()

void smi::setPropertyOwnershipTag ( const std::string  password,
const char *  newTag,
size_t  size 
)

◆ setupCallingInterfaceSmi()

std::auto_ptr<smi::IDellCallingInterfaceSmi> smi::setupCallingInterfaceSmi ( u16  smiClass,
u16  select,
const u32  args[4] 
)

◆ wirelessRadioControl()

void smi::wirelessRadioControl ( bool  enable,
bool  boot,
bool  runtime,
int  enable_token,
int  disable_token,
int  radioNum,
std::string  password 
)

◆ wirelessRadioStatus()

radioStatusCode smi::wirelessRadioStatus ( radioNum  which,
std::ostream &  cout = std::cout,
u32  defRes2 = 0 
)

◆ wirelessSwitchControl()

void smi::wirelessSwitchControl ( bool  enable,
bool  boot,
bool  runtime,
int  enable_token,
int  disable_token,
int  switchNum,
std::string  password 
)

◆ writeACModeSetting()

u32 smi::writeACModeSetting ( const std::string &  password,
u32  location,
u32  value,
u32 minValue,
u32 maxValue 
)

◆ writeBatteryModeSetting()

u32 smi::writeBatteryModeSetting ( const std::string &  password,
u32  location,
u32  value,
u32 minValue,
u32 maxValue 
)

◆ writeNVStorage()

u32 smi::writeNVStorage ( const std::string &  password,
u32  location,
u32  value,
u32 minValue,
u32 maxValue 
)

Variable Documentation

◆ Bluetooth_Devices_Disable

const int smi::Bluetooth_Devices_Disable

◆ Bluetooth_Devices_Enable

const int smi::Bluetooth_Devices_Enable

◆ Cellular_Radio_Disable

const int smi::Cellular_Radio_Disable

◆ Cellular_Radio_Enable

const int smi::Cellular_Radio_Enable

◆ Radio_Transmission_Disable

const int smi::Radio_Transmission_Disable

◆ Radio_Transmission_Enable

const int smi::Radio_Transmission_Enable

◆ WiFi_Locator_Disable

const int smi::WiFi_Locator_Disable

◆ WiFi_Locator_Enable

const int smi::WiFi_Locator_Enable

◆ Wireless_Device_App_Control

const int smi::Wireless_Device_App_Control

◆ Wireless_Device_App_Or_Hotkey_Control

const int smi::Wireless_Device_App_Or_Hotkey_Control

◆ Wireless_Device_Disable

const int smi::Wireless_Device_Disable

◆ Wireless_LAN_Disable

const int smi::Wireless_LAN_Disable

◆ Wireless_LAN_Enable

const int smi::Wireless_LAN_Enable

◆ Wireless_Switch_Bluetooth_Control_Disable

const int smi::Wireless_Switch_Bluetooth_Control_Disable

◆ Wireless_Switch_Bluetooth_Control_Enable

const int smi::Wireless_Switch_Bluetooth_Control_Enable

◆ Wireless_Switch_Cellular_Control_Disable

const int smi::Wireless_Switch_Cellular_Control_Disable

◆ Wireless_Switch_Cellular_Control_Enable

const int smi::Wireless_Switch_Cellular_Control_Enable

◆ Wireless_Switch_Wireless_LAN_Control_Disable

const int smi::Wireless_Switch_Wireless_LAN_Control_Disable

◆ Wireless_Switch_Wireless_LAN_Control_Enable

const int smi::Wireless_Switch_Wireless_LAN_Control_Enable