2022-10-09 03:38:28 -07:00
|
|
|
/*
|
|
|
|
* sent.h
|
|
|
|
*
|
|
|
|
* SENT protocol decoder header
|
|
|
|
*
|
|
|
|
* @date Oct 01, 2022
|
|
|
|
* @author Andrey Gusakov <dron0gus@gmail.com>, (c) 2022
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
/* SENT decoder init */
|
|
|
|
void initSent();
|
|
|
|
|
|
|
|
/* ISR hook */
|
|
|
|
void SENT_ISR_Handler(uint8_t ch, uint16_t val_res);
|
|
|
|
|
|
|
|
/* Stop/Start for config update */
|
2023-04-19 13:46:41 -07:00
|
|
|
void startSent();
|
|
|
|
void stopSent();
|
2022-10-22 19:46:37 -07:00
|
|
|
|
2022-10-26 03:42:14 -07:00
|
|
|
float getSentValue(size_t index);
|
2022-11-06 02:43:36 -08:00
|
|
|
int getSentValues(size_t index, uint16_t *sig0, uint16_t *sig1);
|