mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-23 11:13:09 +00:00
052237f8c9
* IR: Doxygen docs, some rename * Rename irda -> infrared * Rollback collateral renames Co-authored-by: あく <alleteam@gmail.com>
46 lines
1.2 KiB
C
46 lines
1.2 KiB
C
#include <furi_hal_infrared.h>
|
|
#include <infrared.h>
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* Send message over INFRARED.
|
|
*
|
|
* \param[in] message - message to send.
|
|
* \param[in] times - number of times message should be sent.
|
|
*/
|
|
void infrared_send(const InfraredMessage* message, int times);
|
|
|
|
/**
|
|
* Send raw data through infrared port.
|
|
*
|
|
* \param[in] timings - array of timings to send.
|
|
* \param[in] timings_cnt - timings array size.
|
|
* \param[in] start_from_mark - true if timings starts from mark,
|
|
* otherwise from space
|
|
*/
|
|
void infrared_send_raw(const uint32_t timings[], uint32_t timings_cnt, bool start_from_mark);
|
|
|
|
/**
|
|
* Send raw data through infrared port, with additional settings.
|
|
*
|
|
* \param[in] timings - array of timings to send.
|
|
* \param[in] timings_cnt - timings array size.
|
|
* \param[in] start_from_mark - true if timings starts from mark,
|
|
* otherwise from space
|
|
* \param[in] duty_cycle - duty cycle to generate on PWM
|
|
* \param[in] frequency - frequency to generate on PWM
|
|
*/
|
|
void infrared_send_raw_ext(
|
|
const uint32_t timings[],
|
|
uint32_t timings_cnt,
|
|
bool start_from_mark,
|
|
uint32_t frequency,
|
|
float duty_cycle);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|