HF-BNO08x  0.1.0-dev
Loading...
Searching...
No Matches
HcBin.h
Go to the documentation of this file.
1/*
2 * Copyright 2015-21 CEVA, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License and
6 * any applicable agreements you may have with CEVA, Inc.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
31#ifndef HCBIN_H
32#define HCBIN_H
33
34#include <stdint.h>
35
47typedef struct HcBin_s {
52 int (*open)(void);
53
58 int (*close)(void);
59
65 const char* (*getMeta)(const char* key);
66
71 uint32_t (*getAppLen)(void);
72
83 uint32_t (*getPacketLen)(void);
84
93 int (*getAppData)(uint8_t* packet, uint32_t offset, uint32_t len);
95
96#endif
struct HcBin_s HcBin_t
Definition HcBin.h:47
uint32_t(* getPacketLen)(void)
Definition HcBin.h:83
uint32_t(* getAppLen)(void)
Definition HcBin.h:71
int(* close)(void)
Definition HcBin.h:58
int(* open)(void)
Definition HcBin.h:52
int(* getAppData)(uint8_t *packet, uint32_t offset, uint32_t len)
Definition HcBin.h:93