mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-11 05:29:43 +00:00
displayid: constructor with parameters.
This commit is contained in:
parent
8fcdc5298a
commit
0e09ecdfa4
@ -77,6 +77,14 @@ DisplayID::DisplayID()
|
||||
this->data_ptr = 0;
|
||||
}
|
||||
|
||||
DisplayID::DisplayID(uint8_t std_code, uint8_t ext_code)
|
||||
{
|
||||
this->id_kind = Disp_Id_Kind::AppleSense;
|
||||
|
||||
this->std_sense_code = std_code;
|
||||
this->ext_sense_code = ext_code;
|
||||
}
|
||||
|
||||
uint8_t DisplayID::read_monitor_sense(uint8_t levels, uint8_t dirs)
|
||||
{
|
||||
uint8_t scl, sda;
|
||||
|
@ -56,6 +56,7 @@ enum I2CState : uint8_t {
|
||||
class DisplayID {
|
||||
public:
|
||||
DisplayID();
|
||||
DisplayID(uint8_t std_code, uint8_t ext_code);
|
||||
~DisplayID() = default;
|
||||
|
||||
uint8_t read_monitor_sense(uint8_t levels, uint8_t dirs);
|
||||
|
Loading…
x
Reference in New Issue
Block a user