ccs定义的函数不变色_ccs数据定义

Basic Types

Type-Specifier

int1

Defines a 1 bit number

int8

Defines an 8 bit number

int16

Defines a 16 bit number

int32

Defines a 32 bit number

char

Defines a 8 bit character

float

Defines a 32 bit floating point number

short

By default the same as int1

Int

By default the same as int8

long

By default the same as int16

void

Indicates no specific type

注意:所有的类型,除去浮点(

float

),默认的是无符号(

unsigned

);然而,

可能由

unsigned

signed

在之前。

Short

long

要有关键字

INT

跟在后面没有影

响。同样查看

#TYPE

来改变默认的大小。

SHORT

是一种特殊类型用来产生非常有效的位操作和

I/O

排列的位

(INT1

SHORT)

代码在

RAM

是支持的

。指向位的指针是不允许的。

Type-Qualifier

static

V

ariable

is

globally

active

and

initialized

to

0.

Only

accessible

from

this

compilation

unit.

auto

V

ariable exists only while the procedure is active. This is the default and AUTO need

not be used.

double

Is a reserved word but is not a supported data type.

extern

External

variable

used

with

multiple

compilation

units.

No

storage

is

allocated.

Is

used

to

make

otherwise

out

of

scope

data

accessible.

there

must

be

a

non-extern

definition at the global level in some compilation unit.

register

Is allowed as a qualifier however, has no effect.

_fixed(n)

Creates a fixed point decimal number where n is how many decimal places to round

to.

特殊类型

Enum

枚举类型:产生一个整形常量的列表。

Emum

[id]

{[id[=cexpr]]}

一个或多个逗号隔开

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值