Base class for the ublox-xxx-cellular-xxx classes. Cannot be used standalone, only inherited by classes that do properly useful stuff. Or, to put it another way, if you are using any of the ublox-xxx-cellular-xxx classes, you will need this class also.
Dependents: example-ublox-cellular-interface example-ublox-cellular-driver-gen HelloMQTT example-ublox-cellular-interface_r410M ... more
UbloxATCmdParser.h@25:e67d3d9d2e7e, 2019-05-29 (annotated)
- Committer:
- wajahat.abbas@u-blox.com
- Date:
- Wed May 29 12:39:28 2019 +0500
- Revision:
- 25:e67d3d9d2e7e
Added support for +UPSV (idle mode) for C030_R412M
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 1 | /* |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 2 | * Copyright (c) 2017, Arm Limited and affiliates. |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 3 | * SPDX-License-Identifier: Apache-2.0 |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 4 | * |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 6 | * you may not use this file except in compliance with the License. |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 7 | * You may obtain a copy of the License at |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 8 | * |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 10 | * |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 11 | * Unless required by applicable law or agreed to in writing, software |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 14 | * See the License for the specific language governing permissions and |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 15 | * limitations under the License. |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 16 | */ |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 17 | #ifdef TARGET_UBLOX_C030_R41XM |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 18 | #ifndef UBLOXATCMDPARSER_H_ |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 19 | #define UBLOXATCMDPARSER_H_ |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 20 | |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 21 | #include "ATCmdParser.h" |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 22 | #include "mbed.h" |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 23 | |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 24 | namespace mbed { |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 25 | |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 26 | /** |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 27 | * Class UbloxATCmdParser |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 28 | * |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 29 | */ |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 30 | class UbloxATCmdParser : public ATCmdParser |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 31 | { |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 32 | public: |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 33 | UbloxATCmdParser(FileHandle *fh, const char *output_delimiter = "\r", |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 34 | int buffer_size = 256, int timeout = 8000, bool debug = false); |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 35 | ~UbloxATCmdParser(); |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 36 | |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 37 | bool send(const char *command, ...) MBED_PRINTF_METHOD(1,2); |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 38 | |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 39 | void set_timeout(int timeout); |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 40 | |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 41 | bool is_idle_mode_enabled(); |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 42 | |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 43 | void idle_mode_enabled(); |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 44 | |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 45 | void idle_mode_disabled(); |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 46 | |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 47 | private: |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 48 | bool _idle_mode_status; |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 49 | Timer _wakeup_timer; |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 50 | int _timeout; |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 51 | }; |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 52 | |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 53 | |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 54 | } // namespace mbed |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 55 | |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 56 | #endif |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 57 | #endif |
wajahat.abbas@u-blox.com | 25:e67d3d9d2e7e | 58 |