TMPM4G9  V1.0.0.0
BSP_UTILITIES_Private_fuctions

Functions

int put_s (const char *s)
 The character is shown to an output stream. More...
 
int get_s (char *s, uint8_t num)
 The string is acquired from an input stream. More...
 
__STATIC_INLINE uint8_t convert_time_to_reg (uint8_t src)
 Convet time value to register setting value. More...
 
__STATIC_INLINE uint8_t convert_time_to_dec (uint8_t src)
 Convet time value to decimal. More...
 
__STATIC_INLINE void set_page (rtc_t *p_obj, uint8_t page)
 Set PAGE. More...
 
int get_char_once (void)
 The character is acquired from an input stream. More...
 

Detailed Description

Function Documentation

§ convert_time_to_dec()

__STATIC_INLINE uint8_t convert_time_to_dec ( uint8_t  src)

Convet time value to decimal.

Parameters
[in]src:Register setting value.
Return values
Decimal.
Note
-

§ convert_time_to_reg()

__STATIC_INLINE uint8_t convert_time_to_reg ( uint8_t  src)

Convet time value to register setting value.

Parameters
[in]src:Decimal.
Return values
Registersetting value.
Note
-

§ get_char_once()

int get_char_once ( void  )

The character is acquired from an input stream.

Parameters
-
Returns
Input Character data.
Return values
(value< 0) :Failure
Note
-

§ get_s()

int get_s ( char *  s,
uint8_t  num 
)

The string is acquired from an input stream.

The character is acquired from an input stream.

Parameters
[in]s:Destination address.
[in]num
Return values
Suceess:Num of input data(bytes).
Failure:-1
Note
-
Parameters
s
num: Number of Input Caracter
Returns
Input Character data.
Return values
(value< 0) :Failure
Note
-

§ put_s()

int put_s ( const char *  s)

The character is shown to an output stream.

Parameters
[in]s:Source address.
Return values
Suceess:Num of output data(bytes).
Failure:-1
Precondition
Have finished termination of a designated character string by NULL character.
Note
-

§ set_page()

__STATIC_INLINE void set_page ( rtc_t p_obj,
uint8_t  page 
)

Set PAGE.

Parameters
[in]p_obj:Object address.
[in]page:Page.
Return values
-
Note
Access to RTCPAGER.