fwupd/plugins/elantp/fu-elantp-firmware.h
jinglewu f93f5ebffa
elantp: Add support for more haptic hardware
Support ic_type 0x12 & 0x13, iap_ver 0x3 & 0x5 iap flow.
2022-11-08 11:32:56 +00:00

28 lines
755 B
C

/*
* Copyright (C) 2020 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#include <fwupdplugin.h>
#define FU_TYPE_ELANTP_FIRMWARE (fu_elantp_firmware_get_type())
G_DECLARE_FINAL_TYPE(FuElantpFirmware, fu_elantp_firmware, FU, ELANTP_FIRMWARE, FuFirmware)
FuFirmware *
fu_elantp_firmware_new(void);
guint16
fu_elantp_firmware_get_module_id(FuElantpFirmware *self);
guint16
fu_elantp_firmware_get_ic_type(FuElantpFirmware *self);
guint16
fu_elantp_firmware_get_iap_addr(FuElantpFirmware *self);
guint16
fu_elantp_firmware_get_iap_ver(FuElantpFirmware *self);
gboolean
fu_elantp_firmware_get_forcetable_support(FuElantpFirmware *self);
guint32
fu_elantp_firmware_get_forcetable_addr(FuElantpFirmware *self);