getMMIOerrorCode static method
Converts the native error code value
to MMIOerrorCode.
Implementation
static MMIOerrorCode getMMIOerrorCode(int value) {
// must be negative
if (value >= 0) {
return MMIOerrorCode.errorCodeNotMappable;
}
value = -value;
// check range
if (value > MMIOerrorCode.mmioErrorClose.index) {
return MMIOerrorCode.errorCodeNotMappable;
}
return MMIOerrorCode.values[value];
}