decodeCombinedType function

MraaCombinedTypeDecode decodeCombinedType(
  1. int value
)

Combined type function decoder

Implementation

MraaCombinedTypeDecode decodeCombinedType(int value) {
  final ret = MraaCombinedTypeDecode();
  ret.mainPlatform = MraaPlatformType.platformTypes(value & 0xFF);
  ret.subPlatform = MraaPlatformType.platformTypes(value & (0xFF00 << 8));
  return ret;
}