EasyManua.ls Logo

Globalstar ST150 - Using and Enabling Peripheral Devices

Globalstar ST150
73 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
9150-0125-01 R-4
ST150M User Manual
Confidential & Proprietary Information
23
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
2
C ports using custom code. One existing I2C port is brought out to the external pins on the module and an I
2
C HAL is
provided in the Globalstar SDK for sending data over that module.
Using the external I
2
C pins
I
2
C port pins are available on the module as follows:
Pin 45 CLK
Pin 44 SDA
A HAL in the SDK supports the following functions for transferring data to and from I
2
C devices via those pins:
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);

Table of Contents

Related product manuals