Software APIs
sw
device
tests
penetrationtests
firmware
lib
extclk_sca_fi.h
1
// Copyright lowRISC contributors (OpenTitan project).
2
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
3
// SPDX-License-Identifier: Apache-2.0
4
5
#ifndef OPENTITAN_SW_DEVICE_TESTS_PENETRATIONTESTS_FIRMWARE_LIB_EXTCLK_SCA_FI_H_
6
#define OPENTITAN_SW_DEVICE_TESTS_PENETRATIONTESTS_FIRMWARE_LIB_EXTCLK_SCA_FI_H_
7
8
#include "sw/device/lib/base/status.h"
9
#include "sw/device/lib/ujson/ujson.h"
10
11
/**
12
* Extclk configure command handler.
13
*
14
* Allows to configure the external clock.
15
* The uJSON data contains:
16
* - sel: External clock on or off.
17
* - hi_speed_sel: Nominal or low-speed external clock.
18
*
19
* @param uj An initialized uJSON context.
20
* @return OK or error.
21
*/
22
status_t
handle_extclk_sca_fi_configure(
ujson_t
*uj);
23
24
/**
25
* EXTCLK SCA FI command handler.
26
*
27
* Command handler for the EXTCLK SCA FI command.
28
*
29
* @param uj An initialized uJSON context.
30
* @return OK or error.
31
*/
32
status_t
handle_extclk_sca_fi(
ujson_t
*uj);
33
34
#endif
// OPENTITAN_SW_DEVICE_TESTS_PENETRATIONTESTS_FIRMWARE_LIB_EXTCLK_SCA_FI_H_
Return to
OpenTitan Documentation