IRPyro API
(sKEMLIB1)
Collection of routines and data structures covering the functionality of the IRPyro sensor
|
Go to the documentation of this file.
43 #include "stm32f30x.h"
44 #include "stm32f30x_exti.h"
45 #include "stm32f30x_gpio.h"
46 #include "stm32f30x_i2c.h"
47 #include "stm32f30x_syscfg.h"
48 #include "stm32f30x_usart.h"
61 void CS_pin_set(uint8_t port, uint8_t pin, uint8_t value);
62 void power_set(uint8_t port, uint8_t pin);
69 uint8_t
i2c_Write(uint8_t DeviceAddr , uint8_t Command, uint8_t* pBuffer, uint8_t len);
70 uint8_t
i2c_Read(uint8_t DeviceAddr, uint8_t Command, uint8_t* pBuffer, uint16_t len);
83 void Emitter_control(uint8_t *EmitterStatus, uint8_t EmitterONTime, uint8_t EmitterOFFTime);
void(* EXTernal_callback)(void)
void Micro_controller_timeout_set(uint32_t timeout)
Sets the tick_down to monitor a time out.
void LED_READY(uint8_t LED_ready)
Control for the READY led state.
void power_set(uint8_t port, uint8_t pin)
Power sequence from the MCU to the IRPyro sensor.
uint32_t Micro_controller_timeout_get(void)
Recovers the tick_down value to check is not expired.
void EXTernal_Callback_Setup(EXTernal_callback Callback)
Configures function callbacks.
uint8_t i2c_Write(uint8_t DeviceAddr, uint8_t Command, uint8_t *pBuffer, uint8_t len)
Sends data via I2C port.
void Micro_controller_template_init(void)
Groups all required initialization in one function.
void Micro_controller_delay_set(uint32_t delay)
Sets the tick counter.
void Emitter_control(uint8_t *EmitterStatus, uint8_t EmitterONTime, uint8_t EmitterOFFTime)
Changes Emitter status and applies timing parameters.
uint8_t EXTI_detected(uint8_t exti_line)
This function access the status of the interrupt lines for the wake up event.
void USART_Callback_Rx_Setup(USART_callback Callback)
Configures function callbacks.
uint8_t i2c_Read(uint8_t DeviceAddr, uint8_t Command, uint8_t *pBuffer, uint16_t len)
Reads data via I2C port.
void UART_PutString(USART_TypeDef *USARTx, uint8_t *str)
Puts a string in the USART.
uint8_t INT_pin_read(uint8_t port, uint8_t pin)
Reads the status of the pin assigned to the INT line of IRPyro.
void Micro_controller_delay_us(uint32_t time_us)
Example of delay function in micro seconds. Refer to section "12.8 Device Power Up and Reset" in the ...
void Micro_controller_sample_period_timer_set(uint32_t count_value)
void CS_pin_set(uint8_t port, uint8_t pin, uint8_t value)
ON/OFF control from the MCU to the IRPyro sensor.
uint32_t Micro_controller_delay_get(void)
Retrieves the tick counter.
void UART_PutNumber(USART_TypeDef *USARTx, uint32_t number)
Puts a number in the USART.
void(* USART_callback)(void)
void Micro_controller_delay_ms(uint32_t time_ms)
Example of delay function.
void TIM_Callback_Setup(TIM_callback Callback)
Configures function callbacks.
void UART_stream_binary_send(uint8_t *DataS)
Builds a binary data packet for the channels of the sensor, frame counter and saturation byte.
uint8_t UART_byte_get(void)
Interface to acces uart_byte.
void UART_stream_char_send(uint32_t *channel_value, uint8_t channel_saturation)
Plain text data for the active channels of the sensor including, frame counter and saturation byte.
void USART_Callback_Tx_Setup(USART_callback Callback)
Configures function callbacks.
void(* TIM_callback)(void)
uint32_t Micro_controller_sample_period_timer_get(void)