Smart Remote 3 nRF52 v1.2
Typedefs | Functions

IR SIRC driver. More...

Typedefs

typedef void(* drv_ir_callback_t )(const sr3_ir_symbol_t *p_ir_symbol)
 Callback type.
 

Functions

ret_code_t drv_ir_disable (void)
 Disable the IR blaster. More...
 
ret_code_t drv_ir_enable (void)
 Enable the IR blaster. More...
 
ret_code_t drv_ir_init (drv_ir_callback_t m_acknowledge_handler)
 IR blaster initialization. More...
 
ret_code_t drv_ir_send_symbol (const sr3_ir_symbol_t *p_ir_symbol)
 Send an IR symbol. More...
 

Detailed Description

IR SIRC driver.

Function Documentation

ret_code_t drv_ir_disable ( void  )

Disable the IR blaster.

Returns
NRF_SUCCESS on success, otherwise an error code.
ret_code_t drv_ir_enable ( void  )

Enable the IR blaster.

Returns
NRF_SUCCESS on success, otherwise an error code.
ret_code_t drv_ir_init ( drv_ir_callback_t  m_acknowledge_handler)

IR blaster initialization.

Parameters
[in]m_acknowledge_handlerCallback used to report a start and end of IR symbol generation.
Returns
NRF_SUCCESS on success, otherwise an error code.
ret_code_t drv_ir_send_symbol ( const sr3_ir_symbol_t p_ir_symbol)

Send an IR symbol.

Parameters
[in]p_ir_symbolPointer to an IR symbol to start or NULL to stop.
Returns
NRF_SUCCESS on success, otherwise an error code.

Documentation feedback | Developer Zone | Subscribe | Updated