HT32SX Monarch Scan
Monarch Scan application for HT32SX
main.h File Reference

: Header for main.c file. This file contains the common defines of the application. More...

#include "stm32l0xx_hal.h"
#include "assert.h"
#include "stddef.h"
#include <stdio.h>
#include <string.h>
#include "stdarg.h"
#include <stdint.h>
#include <stdlib.h>
#include <math.h>
#include "ST_Sigfox_Init.h"
#include "sigfox_types.h"
#include "sigfox_api.h"
#include "sigfox_monarch_api.h"
#include "monarch_api.h"
#include "retriever_api.h"
#include "mcu_api.h"
#include "st_mcu_api.h"
#include "st_rf_api.h"
#include "addon_sigfox_rf_protocol_api.h"
#include "nvm_api.h"

Go to the source code of this file.

Macros

#define S2LP_SPI_CS_PIN_Pin   GPIO_PIN_15
 
#define S2LP_SPI_CS_PIN_GPIO_Port   GPIOA
 
#define S2LP_SPI_MISO_PIN_Pin   GPIO_PIN_4
 
#define S2LP_SPI_MISO_PIN_GPIO_Port   GPIOB
 
#define S2LP_SPI_SCLK_PIN_Pin   GPIO_PIN_3
 
#define S2LP_SPI_SCLK_PIN_GPIO_Port   GPIOB
 
#define S2LP_SPI_MOSI_PIN_Pin   GPIO_PIN_7
 
#define S2LP_SPI_MOSI_PIN_GPIO_Port   GPIOA
 
#define ALL_REGIONS   63
 
#define RCZ1_OUTPUT_POWER   2
 
#define RCZ2_OUTPUT_POWER   -27
 
#define RCZ3_OUTPUT_POWER   18
 
#define RCZ4_OUTPUT_POWER   -30
 
#define RCZ5_OUTPUT_POWER   18
 
#define RCZ6_OUTPUT_POWER   -2
 

Enumerations

enum  rc_mask {
  RCZ1 = 1, RCZ2, RCZ3, RCZ4,
  RCZ5, RCZ6
}
 

Functions

void Error_Handler (void)
 This function is executed in case of error occurrence. More...
 
void mcuConfig (void)
 
void ST_Init (void)
 Configure the MCU peripherals needed for the transceiver operation. More...
 

Detailed Description

: Header for main.c file. This file contains the common defines of the application.

Attention

© Copyright (c) 2019 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Function Documentation

◆ Error_Handler()

void Error_Handler ( void  )

This function is executed in case of error occurrence.

Return values
None

◆ ST_Init()

void ST_Init ( void  )

Configure the MCU peripherals needed for the transceiver operation.


Parameters
[in]none
[out]none