MeterLogger
Macros | Typedefs | Enumerations
c_types.h File Reference
#include <stdint.h>
#include <stdbool.h>
Include dependency graph for c_types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __le16   u16
 
#define __packed   __attribute__((packed))
 
#define LOCAL   static
 
#define NULL   (void *)0
 
#define BIT(nr)   (1UL << (nr))
 
#define REG_SET_BIT(_r, _b)   (*(volatile uint32_t*)(_r) |= (_b))
 
#define REG_CLR_BIT(_r, _b)   (*(volatile uint32_t*)(_r) &= ~(_b))
 
#define DMEM_ATTR   __attribute__((section(".bss")))
 
#define SHMEM_ATTR
 
#define ICACHE_FLASH_ATTR
 
#define ICACHE_RODATA_ATTR   = { IPADDR_BROADCAST }
 
#define STORE_ATTR   __attribute__((aligned(4)))
 
#define BOOL   bool
 
#define TRUE   true
 
#define FALSE   false
 

Typedefs

typedef signed char sint8_t
 
typedef signed short sint16_t
 
typedef signed long sint32_t
 
typedef signed long long sint64_t
 
typedef unsigned long long u_int64_t
 
typedef float real32_t
 
typedef double real64_t
 
typedef unsigned char uint8
 
typedef unsigned char u8
 
typedef signed char sint8
 
typedef signed char int8
 
typedef signed char s8
 
typedef unsigned short uint16
 
typedef unsigned short u16
 
typedef signed short sint16
 
typedef signed short s16
 
typedef unsigned int uint32
 
typedef unsigned int u_int
 
typedef unsigned int u32
 
typedef signed int sint32
 
typedef signed int s32
 
typedef int int32
 
typedef signed long long sint64
 
typedef unsigned long long uint64
 
typedef unsigned long long u64
 
typedef float real32
 
typedef double real64
 
typedef unsigned int size_t
 

Enumerations

enum  STATUS {
  OK = 0, FAIL, PENDING, BUSY,
  CANCEL
}
 

Macro Definition Documentation

◆ __le16

#define __le16   u16

Definition at line 66 of file c_types.h.

◆ __packed

struct frmrinfo __packed   __attribute__((packed))

Definition at line 70 of file c_types.h.

◆ BIT

#define BIT (   nr)    (1UL << (nr))

Definition at line 87 of file c_types.h.

◆ BOOL

#define BOOL   bool

◆ DMEM_ATTR

#define DMEM_ATTR   __attribute__((section(".bss")))

Definition at line 92 of file c_types.h.

◆ FALSE

#define FALSE   false

◆ ICACHE_FLASH_ATTR

#define ICACHE_FLASH_ATTR

Definition at line 99 of file c_types.h.

Referenced by ac_motor_valve_close(), ac_motor_valve_open(), ac_out_init(), ac_pwm_timer_func(), ac_test(), ac_thermo_close(), ac_thermo_open(), ac_thermo_pwm(), acl_check_packet(), add_cron_job_from_query(), AddRoundKey(), BlockCopy(), captdnsRecv(), cfg_load(), cfg_save(), cfg_save_defered(), cgiRedirect(), Cipher(), cleanup_decimal_str(), cron_init(), decimal_number_length(), deliver_publish(), en61107_delayed_uart_change_setting_timer_func(), en61107_fifo_get(), en61107_fifo_put(), en61107_get_received_serial(), en61107_is_eod_char(), en61107_meter_wake_up_timer_func(), en61107_receive_timeout_timer_func(), en61107_received_task(), en61107_register_meter_is_ready_cb(), en61107_request_init(), en61107_request_send(), en61107_response_set_value(), en61107_set_mqtt_client(), en61107_uart_send_en61107(), en61107_uart_send_en61107_ident(), en61107_uart_send_inst_values(), en61107_uart_send_standard_data_1(), en61107_uart_send_standard_data_2(), encrypt_aes_hmac_combined(), espconn_abort(), espconn_client_close(), espconn_client_connect(), espconn_client_err(), espconn_client_sent(), espconn_connect(), espconn_create(), espconn_data_sent(), espconn_delete(), espconn_disconnect(), espconn_find_connection(), espconn_find_current_pcb(), espconn_get_acticve_num(), espconn_get_connection_info(), espconn_get_keepalive(), espconn_get_packet_info(), espconn_gethostbyname(), espconn_igmp_leave(), espconn_mdns_close(), espconn_mdns_disable(), espconn_mdns_enable(), espconn_mdns_get_hostname(), espconn_mdns_get_servername(), espconn_mdns_server_register(), espconn_mdns_server_unregister(), espconn_mdns_set_hostname(), espconn_mdns_set_servername(), espconn_port(), espconn_recv_hold(), espconn_recv_unhold(), espconn_regist_connectcb(), espconn_regist_disconcb(), espconn_regist_reconcb(), espconn_regist_recvcb(), espconn_regist_sentcb(), espconn_regist_time(), espconn_regist_write_finish(), espconn_sent(), espconn_server_close(), espconn_server_poll(), espconn_server_recv(), espconn_server_sent(), espconn_set_opt(), espconn_Task(), espconn_tcp_accept(), espconn_tcp_client(), espconn_tcp_disconnect(), espconn_tcp_disconnect_successful(), espconn_tcp_finish(), espconn_tcp_get_buf_count(), espconn_tcp_reconnect(), espconn_udp_disconnect(), espconn_udp_sendto(), espconn_udp_sent(), espconn_udp_server(), esponn_server_err(), ext_spi_flash_erase_sector(), ext_spi_flash_id(), ext_spi_flash_read(), ext_spi_flash_write(), ext_spi_init(), getSBoxInvert(), getSBoxValue(), gpio16_input_conf(), gpio16_output_conf(), gpio16_output_set(), hmac_sha256_final(), hmac_sha256_init(), hmac_sha256_update(), httpdConnectCb(), httpdDisconCb(), httpdDisconnectTimerFunc(), httpdEndHeaders(), httpdFindArg(), httpdFindConnData(), httpdGetHeader(), httpdGetMimetype(), httpdHeader(), httpdInit(), httpdParseHeader(), httpdReconCb(), httpdRecvCb(), httpdRedirect(), httpdSend(), httpdSendResp(), httpdStartResponse(), httpdUrlDecode(), init_aes_hmac_combined(), InvCipher(), InvMixColumns(), InvShiftRows(), InvSubBytes(), ip_route(), ip_router(), KeyExpansion(), kmp_byte_stuff(), kmp_crc16(), kmp_decode_frame(), kmp_get_received_energy_kwh(), kmp_get_received_serial(), kmp_get_register(), kmp_get_register_timer_func(), kmp_get_serial(), kmp_get_serial_timer_func(), kmp_get_type(), kmp_receive_timeout_timer_func(), kmp_received_task(), kmp_register_meter_is_ready_cb(), kmp_request_init(), kmp_set_clock(), kmp_set_mqtt_client(), kmp_unit_to_string(), kmp_value_to_double(), kmp_value_to_string(), lwip_standard_chksum(), minute_timer_func(), MixColumns(), mqtt_client_delete(), MQTT_Connect(), MQTT_DeleteClient(), MQTT_Disconnect(), mqtt_dns_found(), mqtt_get_retain(), MQTT_InitClient(), MQTT_InitConnection(), MQTT_InitLWT(), MQTT_OnConnected(), MQTT_OnData(), MQTT_OnDisconnected(), MQTT_OnPublished(), MQTT_Ping(), MQTT_Publish(), mqtt_send_keepalive(), MQTT_Subscribe(), MQTT_Task(), mqtt_tcpclient_connect_cb(), mqtt_tcpclient_delete(), mqtt_tcpclient_discon_cb(), mqtt_tcpclient_recon_cb(), mqtt_tcpclient_recv(), mqtt_timer(), MQTT_UnSubscribe(), parse_en61107_frame(), parse_mc66cde_inst_values_frame(), parse_mc66cde_standard_data_1_frame(), parse_mc66cde_standard_data_2_frame(), sha256_end(), sha256_final(), sha256_init(), sha256_raw(), sha256_transform(), sha256_update(), ShiftRows(), spi_clock(), spi_init(), spi_init_gpio(), spi_mode(), spi_rx_byte_order(), spi_tx_byte_order(), SubBytes(), sys_now(), uart0_rx_intr_handler(), uart0_tx_buffer(), uart0_write_char(), uart1_write_char(), uart_init(), uart_set_line_inverse(), uart_set_parity(), uart_set_stop_bits(), uart_set_word_length(), uart_tx_one_char(), xmitSendBuff(), and xtime().

◆ ICACHE_RODATA_ATTR

const ip_addr_t ip_addr_broadcast ICACHE_RODATA_ATTR   = { IPADDR_BROADCAST }

Definition at line 100 of file c_types.h.

◆ LOCAL

#define LOCAL   static

Definition at line 72 of file c_types.h.

Referenced by mqtt_dns_found(), and uart0_sendStr().

◆ NULL

#define NULL   (void *)0

Definition at line 75 of file c_types.h.

◆ REG_CLR_BIT

#define REG_CLR_BIT (   _r,
  _b 
)    (*(volatile uint32_t*)(_r) &= ~(_b))

Definition at line 90 of file c_types.h.

◆ REG_SET_BIT

#define REG_SET_BIT (   _r,
  _b 
)    (*(volatile uint32_t*)(_r) |= (_b))

Definition at line 89 of file c_types.h.

◆ SHMEM_ATTR

#define SHMEM_ATTR

Definition at line 93 of file c_types.h.

◆ STORE_ATTR

#define STORE_ATTR   __attribute__((aligned(4)))

Definition at line 103 of file c_types.h.

◆ TRUE

#define TRUE   true

Typedef Documentation

◆ int32

typedef int int32

Definition at line 59 of file c_types.h.

◆ int8

typedef signed char int8

Definition at line 48 of file c_types.h.

◆ real32

typedef float real32

Definition at line 63 of file c_types.h.

◆ real32_t

typedef float real32_t

Definition at line 42 of file c_types.h.

◆ real64

typedef double real64

Definition at line 64 of file c_types.h.

◆ real64_t

typedef double real64_t

Definition at line 43 of file c_types.h.

◆ s16

typedef signed short s16

Definition at line 53 of file c_types.h.

◆ s32

typedef signed int s32

Definition at line 58 of file c_types.h.

◆ s8

typedef signed char s8

Definition at line 49 of file c_types.h.

◆ sint16

typedef signed short sint16

Definition at line 52 of file c_types.h.

◆ sint16_t

typedef signed short sint16_t

Definition at line 34 of file c_types.h.

◆ sint32

typedef signed int sint32

Definition at line 57 of file c_types.h.

◆ sint32_t

typedef signed long sint32_t

Definition at line 37 of file c_types.h.

◆ sint64

typedef signed long long sint64

Definition at line 60 of file c_types.h.

◆ sint64_t

typedef signed long long sint64_t

Definition at line 39 of file c_types.h.

◆ sint8

typedef signed char sint8

Definition at line 47 of file c_types.h.

◆ sint8_t

typedef signed char sint8_t

Definition at line 31 of file c_types.h.

◆ size_t

typedef unsigned int size_t

Definition at line 68 of file c_types.h.

◆ u16

typedef unsigned short u16

Definition at line 51 of file c_types.h.

◆ u32

typedef unsigned int u32

Definition at line 56 of file c_types.h.

◆ u64

typedef unsigned long long u64

Definition at line 62 of file c_types.h.

◆ u8

typedef unsigned char u8

Definition at line 46 of file c_types.h.

◆ u_int

typedef unsigned int u_int

Definition at line 55 of file c_types.h.

◆ u_int64_t

typedef unsigned long long u_int64_t

Definition at line 41 of file c_types.h.

◆ uint16

typedef unsigned short uint16

Definition at line 50 of file c_types.h.

◆ uint32

typedef unsigned int uint32

Definition at line 54 of file c_types.h.

◆ uint64

typedef unsigned long long uint64

Definition at line 61 of file c_types.h.

◆ uint8

typedef unsigned char uint8

Definition at line 45 of file c_types.h.

Enumeration Type Documentation

◆ STATUS

enum STATUS
Enumerator
OK 
FAIL 
PENDING 
BUSY 
CANCEL 

Definition at line 79 of file c_types.h.

79  {
80  OK = 0,
81  FAIL,
82  PENDING,
83  BUSY,
84  CANCEL,
85 } STATUS;
Definition: c_types.h:84
Definition: c_types.h:83
Definition: c_types.h:81
STATUS
Definition: c_types.h:79
Definition: c_types.h:80