Microchip® Advanced Software Framework

tsens_callback.h File Reference

SAM Temperature Sensor Driver.

Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.

#include <compiler.h>
#include <system_interrupt.h>
#include "tsens.h"

Data Structures

struct  tsens_module
 TSENS software device instance structure. More...
 

Typedefs

typedef void(* tsens_callback_t )(enum tsens_callback)
 Type of the callback functions. More...
 

Enumerations

enum  tsens_callback {
  TSENS_CALLBACK_RESULT_READY,
  TSENS_CALLBACK_OVERRUN,
  TSENS_CALLBACK_WINDOW,
  TSENS_CALLBACK_OVF
}
 TSENS Callback Types. More...
 

Functions

Callback Management
enum status_code tsens_register_callback (struct tsens_module *const module, tsens_callback_t callback_func, enum tsens_callback callback_type)
 Registers a callback. More...
 
enum status_code tsens_unregister_callback (struct tsens_module *const module, enum tsens_callback callback_type)
 Unregisters a callback. More...
 
static void tsens_enable_callback (enum tsens_callback callback_type)
 Enables callback. More...
 
static void tsens_disable_callback (enum tsens_callback callback_type)
 Disables callback. More...
 
void tsens_read_job (struct tsens_module *const module_inst, int32_t *result)
 Read result from TSENS. More...