29 #ifdef CONFIG_TEMP_MULTI
34 struct temp *(*temp_init)(uint32_t index);
37 int32_t (*
temp_get)(
struct temp *temp,
float *value, TickType_t waittime);
38 int32_t (*
temp_getISR)(
struct temp *temp,
float *value);
50 #ifdef CONFIG_INSTANCE_NAME
56 #ifdef CONFIG_TEMP_THREAD_SAVE
62 #ifdef CONFIG_TEMP_MULTI
66 const struct temp_ops *ops;
70 #ifndef CONFIG_TEMP_MULTI
91 int32_t
temp_get(
struct temp *temp,
float *value, TickType_t waittime);
100 inline struct temp *
temp_init(uint32_t index) {
106 return a->ops->temp_init(index);
110 return a->ops->temp_deinit(temp);
113 inline int32_t
temp_get(
struct temp *temp,
float *value, TickType_t waittime) {
115 return a->ops->temp_get(temp, value, waittime);
117 inline int32_t
temp_getISR(
struct temp *temp,
float *value) {
119 return a->ops->temp_getISR(temp, value);