GPS tracker code documentation
 All Classes Files Functions Variables Macros Pages
Public Attributes | List of all members
SIM808_typedef Struct Reference

is used to abstract the SIM808 hardware interface. It will decouple the functions from the hardware (uart+pins) used to interface with the module. The UART peripheral used to send AT commands to the module and the UART used to send Debug messages and the pins used to power on, reset and check status of the module are combined together in this struct. This struct will be passed to all the functions that perform actions on the module. More...

#include <sim808.h>

Public Attributes

USART_TypeDef * AT_uart_instance
 
USART_TypeDef * debug_uart_instance
 
GPIO_TypeDef * power_on_gpio
 
uint16_t power_on_pin
 
GPIO_TypeDef * reset_gpio
 
uint16_t reset_pin
 
GPIO_TypeDef * status_gpio
 
uint16_t status_pin
 

Detailed Description

is used to abstract the SIM808 hardware interface. It will decouple the functions from the hardware (uart+pins) used to interface with the module. The UART peripheral used to send AT commands to the module and the UART used to send Debug messages and the pins used to power on, reset and check status of the module are combined together in this struct. This struct will be passed to all the functions that perform actions on the module.

Member Data Documentation

USART_TypeDef* SIM808_typedef::AT_uart_instance
USART_TypeDef* SIM808_typedef::debug_uart_instance
GPIO_TypeDef* SIM808_typedef::power_on_gpio
uint16_t SIM808_typedef::power_on_pin
GPIO_TypeDef* SIM808_typedef::reset_gpio
uint16_t SIM808_typedef::reset_pin
GPIO_TypeDef* SIM808_typedef::status_gpio
uint16_t SIM808_typedef::status_pin

The documentation for this struct was generated from the following file: