xref: /aosp_15_r20/hardware/interfaces/gnss/1.0/IGnssXtra.hal (revision 4d7e907c777eeecc4c5bd7cf640a754fac206ff7)
1package [email protected];
2import IGnssXtraCallback;
3
4/**
5 * This interface is used by the GNSS HAL to request the framework
6 * to download XTRA data.
7 */
8interface IGnssXtra {
9    /**
10     * Opens the XTRA interface and provides the callback routines
11     * to the implementation of this interface.
12     *
13     * @param callback Handle to the IGnssXtraCallback interface.
14     *
15     * @return success True if the operation is successful.
16     */
17    setCallback(IGnssXtraCallback callback) generates (bool success);
18
19    /**
20     * Inject the downloaded XTRA data into the GNSS receiver.
21     *
22     * @param xtraData GNSS XTRA data.
23     *
24     * @return success True if the operation is successful.
25     */
26    injectXtraData(string xtraData) generates (bool success);
27};
28