Rev 4707 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4707 | Rev 4743 | ||
---|---|---|---|
Line 66... | Line 66... | ||
66 | * @param address The device local hardware address. Output parameter. |
66 | * @param address The device local hardware address. Output parameter. |
67 | * @param data The address data. Output parameter. |
67 | * @param data The address data. Output parameter. |
68 | * @returns EOK on success. |
68 | * @returns EOK on success. |
69 | * @returns EBADMEM if the address parameter is NULL. |
69 | * @returns EBADMEM if the address parameter is NULL. |
70 | * @returns ENOENT if there no such device. |
70 | * @returns ENOENT if there no such device. |
71 | * @returns Other error codes as defined for the generic_get_addr() function. |
71 | * @returns Other error codes as defined for the generic_get_addr_req() function. |
72 | */ |
72 | */ |
73 | #define nil_get_addr( nil_phone, device_id, address, data ) \ |
73 | #define nil_get_addr_req( nil_phone, device_id, address, data ) \ |
74 | generic_get_addr( nil_phone, NET_NIL_ADDR, device_id, address, data ) |
74 | generic_get_addr_req( nil_phone, NET_NIL_ADDR, device_id, address, data ) |
75 | 75 | ||
76 | /** Returns the device broadcast hardware address. |
76 | /** Returns the device broadcast hardware address. |
77 | * @param nil_phone The network interface layer phone. Input parameter. |
77 | * @param nil_phone The network interface layer phone. Input parameter. |
78 | * @param device_id The device identifier. Input parameter. |
78 | * @param device_id The device identifier. Input parameter. |
79 | * @param address The device broadcast hardware address. Output parameter. |
79 | * @param address The device broadcast hardware address. Output parameter. |
80 | * @param data The address data. Output parameter. |
80 | * @param data The address data. Output parameter. |
81 | * @returns EOK on success. |
81 | * @returns EOK on success. |
82 | * @returns EBADMEM if the address parameter is NULL. |
82 | * @returns EBADMEM if the address parameter is NULL. |
83 | * @returns ENOENT if there no such device. |
83 | * @returns ENOENT if there no such device. |
84 | * @returns Other error codes as defined for the generic_get_addr() function. |
84 | * @returns Other error codes as defined for the generic_get_addr_req() function. |
85 | */ |
85 | */ |
86 | #define nil_get_broadcast_addr( nil_phone, device_id, address, data ) \ |
86 | #define nil_get_broadcast_addr_req( nil_phone, device_id, address, data ) \ |
87 | generic_get_addr( nil_phone, NET_NIL_BROADCAST_ADDR, device_id, address, data ) |
87 | generic_get_addr_req( nil_phone, NET_NIL_BROADCAST_ADDR, device_id, address, data ) |
88 | 88 | ||
89 | /** Sends the packet queue. |
89 | /** Sends the packet queue. |
90 | * @param nil_phone The network interface layer phone. Input parameter. |
90 | * @param nil_phone The network interface layer phone. Input parameter. |
91 | * @param device_id The device identifier. Input parameter. |
91 | * @param device_id The device identifier. Input parameter. |
92 | * @param packet The packet queue. Input parameter. |
92 | * @param packet The packet queue. Input parameter. |
Line 143... | Line 143... | ||
143 | * @returns EOK on success. |
143 | * @returns EOK on success. |
144 | * @returns Other error codes as defined for each specific module received function. |
144 | * @returns Other error codes as defined for each specific module received function. |
145 | */ |
145 | */ |
146 | int nil_received_msg( int nil_phone, device_id_t device_id, packet_t packet, services_t target ); |
146 | int nil_received_msg( int nil_phone, device_id_t device_id, packet_t packet, services_t target ); |
147 | 147 | ||
- | 148 | /** Creates bidirectional connection with the network interface layer module and registers the message receiver. |
|
- | 149 | * @param service The network interface layer module service. Input parameter. |
|
- | 150 | * @param device_id The device identifier. Input parameter. |
|
- | 151 | * @param me The requesting module service. Input parameter. |
|
- | 152 | * @param receiver The message receiver. Input parameter. |
|
- | 153 | * @returns The phone of the needed service. |
|
- | 154 | * @returns EOK on success. |
|
- | 155 | * @returns Other error codes as defined for the bind_service() function. |
|
- | 156 | */ |
|
- | 157 | #define nil_bind_service( service, device_id, me, receiver ) \ |
|
- | 158 | bind_service( service, device_id, me, 0, receiver ); |
|
148 | /*@}*/ |
159 | /*@}*/ |
149 | 160 | ||
150 | #endif |
161 | #endif |
151 | 162 | ||
152 | /** @} |
163 | /** @} |