/*  *********************************************************************
 *  ASTRIS - Remote JTAG probe
 *
 *  Apple H14G gateway
 *
 *  File: astris_gateway_setup_h14g.h
 *
 ***********************************************************************
 *
 *  Copyright (C) 2020- Apple Inc. All rights reserved.
 *
 *  This document is the property of Apple Inc.
 *  It is considered confidential and proprietary.
 *
 *  This document may not be reproduced or transmitted in any form,
 *  in whole or in part, without the express written permission of
 *  Apple Inc.
 ********************************************************************* */

#ifndef astris_gateway_setup_h14g_h
#define astris_gateway_setup_h14g_h

#include "astris_gateway_setup_h13.h"

class GatewaySetupH14G_t:
    public GatewaySetupH13_t {

public:
    GatewaySetupH14G_t(AXconn_t *conn, AXchip_t *chip, AXap_t *dbgap);

    virtual int take_gateway();
    virtual int take_kis_swd_control(bool force_setup);

    uint32_t get_stm_control0_reg();

protected:
    int read_sstat();

};

#endif /* astris_gateway_setup_h14g_h */
