Apple Notification Center Service Protocol API. More...
Go to the source code of this file.
Classes | |
struct | ancs_ntf_flags_t |
notification flags that can be performed for iOS notifications. More... | |
struct | ntf_source_pdu_t |
iOS notification structure. More... | |
Macros | |
#define | CFG_ANCS_ATTRIBUTE_MAXLEN 500 |
Maximum allowed value for attribute length. More... | |
#define | ANCS_ATTR(ID) ((uint32_t) 0x80000000 | ((uint8_t) ID)) |
Attribute ID element without maximum length. More... | |
#define | ANCS_ATTR_MAXLEN(ID, LEN) ((uint32_t) 0x80000000 | ((uint8_t) ID) | ((uint16_t) LEN << 8)) |
Attribute ID element with maximum length. More... | |
Functions | |
void | ancs_notify_attr_get (int uid, char noti_attr) |
Get notification attribute. More... | |
void | ancs_action_perform (int uid, int action) |
ancs perform action More... | |
int | ancs_get_uid (void) |
get ancs phone call UID More... | |
void | ancs_decode_notification_source (uint8_t *p_data, uint16_t length) |
Decode notification source message. More... | |
void | ancs_decode_data_source (uint8_t *p_data, uint16_t length) |
Decode data source message. More... | |
Apple Notification Center Service Protocol API.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file ancs_protocol.h.
#define ANCS_ATTR | ( | ID | ) | ((uint32_t) 0x80000000 | ((uint8_t) ID)) |
Attribute ID element without maximum length.
Definition at line 49 of file ancs_protocol.h.
#define ANCS_ATTR_MAXLEN | ( | ID, | |
LEN | |||
) | ((uint32_t) 0x80000000 | ((uint8_t) ID) | ((uint16_t) LEN << 8)) |
Attribute ID element with maximum length.
Definition at line 52 of file ancs_protocol.h.
#define CFG_ANCS_ATTRIBUTE_MAXLEN 500 |
Maximum allowed value for attribute length.
Definition at line 45 of file ancs_protocol.h.