Using And Enabling Peripheral Devices - Globalstar ST150 User Manual

Table of Contents

Advertisement

9150-0125-01 R-4
UART pin Direction Output Value
RXD
Input
N/A
CTS
Input
N/A
RTS
Output
1
TXD
Output
1
There are 18 configurable baud rates:
1200
2400
4800
9600
14400
19200
28800
31250
38400
56000
57600
76800
115200
230400
250000
460800
921600
1000000
4.3

USING AND ENABLING PERIPHERAL DEVICES

It is possible to re-assign the general purpose GPIO pins provided on the ST150M module to peripherals such as SPI ports
and I
C ports using custom code. One existing I2C port is brought out to the external pins on the module and an I
2
provided in the Globalstar SDK for sending data over that module.
Using the external I
C pins
2
I
C port pins are available on the module as follows:
2
Pin 45 – CLK
Pin 44 – SDA
A HAL in the SDK supports the following functions for transferring data to and from I
bool i2c_is_hal_initialized(void);
bool i2c_initialize_hal(i2c_config_t* ptr_i2c_config);
void i2c_shutdown(void);
ghal_ret_code_t i2c_simple_read(uint8_t u8_address, uint8_t* ptr_rx_data, size_t rx_length);
ghal_ret_code_t i2c_byte_offset_read(uint8_t u8_address, uint8_t u8_offset, uint8_t* ptr_rx_data, size_t rx_length);
ghal_ret_code_t i2c_word_offset_read(uint8_t u8_address, uint16_t u16_offset, uint8_t* ptr_rx_data, size_t rx_length);
ghal_ret_code_t i2c_dword_offset_read(uint8_t u8_address, uint32_t u32_offset, uint8_t* ptr_rx_data, size_t rx_length);
ghal_ret_code_t i2c_simple_write(uint8_t u8_address, uint8_t* ptr_tx_data, size_t tx_length);
ghal_ret_code_t i2c_byte_offset_write(uint8_t u8_address, uint8_t u8_offset, uint8_t* ptr_tx_data, size_t tx_length);
ghal_ret_code_t i2c_word_offset_write(uint8_t u8_address, uint16_t u16_offset, uint8_t* ptr_tx_data, size_t tx_length);
ghal_ret_code_t i2c_dword_offset_write(uint8_t u8_address, uint32_t u32_offset, uint8_t* ptr_tx_data, size_t tx_length);
ST150M User Manual
Confidential & Proprietary Information
C devices via those pins:
2
C HAL is
2
23

Advertisement

Table of Contents
loading

This manual is also suitable for:

St150m-devkit

Table of Contents