nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
string_conversion.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef _STRING_CONVERSION_H_
8#define _STRING_CONVERSION_H_
9
10#include <stdint.h>
11#include <stdbool.h>
12
13
41uint8_t string_conversion_ascii_to_gsm7bit(const uint8_t *data,
42 uint8_t data_len,
43 uint8_t *out_data,
44 uint8_t *out_bytes,
45 uint8_t *out_chars,
46 bool packing);
47
72uint8_t string_conversion_gsm7bit_to_ascii(const uint8_t *data,
73 uint8_t *out_data,
74 uint8_t num_char,
75 bool packed);
76
111uint8_t string_conversion_7bit_sms_packing(uint8_t *data, uint8_t data_len);
112
156uint8_t string_conversion_7bit_sms_unpacking(const uint8_t *packed,
157 uint8_t *unpacked,
158 uint8_t num_char);
159
160#endif /* STRING_CONVERSION_H_ */
uint8_t string_conversion_gsm7bit_to_ascii(const uint8_t *data, uint8_t *out_data, uint8_t num_char, bool packed)
Convert GSM 7 bit Default Alphabet characters to ASCII characters.
uint8_t string_conversion_7bit_sms_unpacking(const uint8_t *packed, uint8_t *unpacked, uint8_t num_char)
Performs unpacking of a packed GSM 7 bit string as described below.
uint8_t string_conversion_7bit_sms_packing(uint8_t *data, uint8_t data_len)
Performs SMS packing for a string using GSM 7 bit character set. The result is stored in the same mem...
uint8_t string_conversion_ascii_to_gsm7bit(const uint8_t *data, uint8_t data_len, uint8_t *out_data, uint8_t *out_bytes, uint8_t *out_chars, bool packing)
Convert ASCII characters into GSM 7 bit Default Alphabet character set.