10a7ce71fSopenharmony_ci/* 20a7ce71fSopenharmony_ci * Copyright (c) 2020, HiHope Community. 30a7ce71fSopenharmony_ci * 40a7ce71fSopenharmony_ci * Redistribution and use in source and binary forms, with or without 50a7ce71fSopenharmony_ci * modification, are permitted provided that the following conditions are met: 60a7ce71fSopenharmony_ci * 70a7ce71fSopenharmony_ci/* 80a7ce71fSopenharmony_ci * Copyright (C) 2022 HiHope Open Source Organization . 90a7ce71fSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 100a7ce71fSopenharmony_ci * you may not use this file except in compliance with the License. 110a7ce71fSopenharmony_ci * You may obtain a copy of the License at 120a7ce71fSopenharmony_ci * 130a7ce71fSopenharmony_ci * http:// www.apache.org/licenses/LICENSE-2.0 140a7ce71fSopenharmony_ci * 150a7ce71fSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 160a7ce71fSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 170a7ce71fSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 180a7ce71fSopenharmony_ci * See the License for the specific language governing permissions and 190a7ce71fSopenharmony_ci * 200a7ce71fSopenharmony_ci * limitations under the License. 210a7ce71fSopenharmony_ci */ 220a7ce71fSopenharmony_ci 230a7ce71fSopenharmony_ci#ifndef AHT20_H 240a7ce71fSopenharmony_ci#define AHT20_H 250a7ce71fSopenharmony_ci 260a7ce71fSopenharmony_ci#include <stdint.h> 270a7ce71fSopenharmony_ci 280a7ce71fSopenharmony_ciuint32_t AHT20_Calibrate(void); 290a7ce71fSopenharmony_ci 300a7ce71fSopenharmony_ciuint32_t AHT20_StartMeasure(void); 310a7ce71fSopenharmony_ci 320a7ce71fSopenharmony_ciuint32_t AHT20_GetMeasureResult(float* temp, float* humi); 330a7ce71fSopenharmony_ci 340a7ce71fSopenharmony_ci#endif // AHT20_H