fwupd/plugins/ccgx/fu-ccgx-firmware.h
Richard Hughes 81da69e73d ccgx: Implement writing firmware to flash
Correctly attach into the alternate mode after the update has completed.

The vendor was appending two files to make LVFS distribution 'easier' but I'd
much rather use the same deliverables as Windows. This also allows us to
simplify the firmware loading.
2020-03-27 13:25:40 +00:00

28 lines
785 B
C

/*
* Copyright (C) 2020 Cypress Semiconductor Corporation.
* Copyright (C) 2020 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#include "fu-firmware.h"
#include "fu-ccgx-common.h"
#define FU_TYPE_CCGX_FIRMWARE (fu_ccgx_firmware_get_type ())
G_DECLARE_FINAL_TYPE (FuCcgxFirmware, fu_ccgx_firmware, FU,CCGX_FIRMWARE, FuFirmware)
typedef struct {
guint8 array_id;
guint16 row_number;
GBytes *data;
} FuCcgxFirmwareRecord;
FuFirmware *fu_ccgx_firmware_new (void);
GPtrArray *fu_ccgx_firmware_get_records (FuCcgxFirmware *self);
guint16 fu_ccgx_firmware_get_app_type (FuCcgxFirmware *self);
guint16 fu_ccgx_firmware_get_silicon_id (FuCcgxFirmware *self);
FWMode fu_ccgx_firmware_get_fw_mode (FuCcgxFirmware *self);